aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/profile.dot.link
blob: b67991d38c29e7ed3e4baf630a565a9d4cae38d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# .profile: basic environment setup
#

# Set language
export LANG=pt_BR.UTF-8

# Source functions and variables from other places
if [ -e "$HOME/.aliases" ]; then
  . $HOME/.aliases
fi

# Funcoes ZZ
if [ -e "/usr/bin/funcoeszz" ]; then
  . /usr/bin/funcoeszz
fi

# Set PATH
PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin
export PATH=$PATH:$HOME/.dotfiles:$HOME/apps/scripts:$HOME/apps/brweather/brweather

# Editor variables, avoiding "Avoiding protocol specified" error
export EDITOR="vim -X"

# Dir colors
eval "`dircolors -b ~/.dircolorsrc`"

# SSH Agent
if [ -e "$HOME/apps/scripts/ssh-agent-eval" ]; then
  $HOME/apps/scripts/ssh-agent-eval
fi

# GPG Agent
if [ -e "$HOME/apps/scripts/gpg-agent-eval" ]; then
  $HOME/apps/scripts/gpg-agent-eval
fi

# Remove lost found folder if empty
if [ -d "$HOME/lost+found" ]; then
  rmdir $HOME/lost+found &> /dev/null
fi

# Custom configuration
if [ -e "$HOME/.custom/profile" ]; then
  . $HOME/.custom/profile
fi