aboutsummaryrefslogtreecommitdiff
path: root/bash/profile
blob: 3729c8a77d2dca3621ba8743fea8cb0ca811dd20 (plain) (blame)
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
# Locale
export LANG='en_NZ.UTF-8'
export LANGUAGE='en_NZ:en'
unset LC_ALL

# Editor
export EDITOR='vi'
export VISUAL="$EDITOR"

# Pager
export PAGER='less'

# Mail
export MAIL="$HOME/Mail"

# Browser
if [ -n "$DISPLAY" ]; then
    export BROWSER='firefox'
else
    export BROWSER='lynx'
fi

# Path
for bindir in \
    "$HOME/.local/bin"      \
    '/usr/local/apache/bin' \
    '/usr/local/mysql/bin'  \
    '/usr/local/nagios/bin' \
    '/usr/local/pgsql/bin'
do
    [ -d "$bindir" ] && export PATH="$bindir:$PATH"
done

# Manuals
[ -d "$HOME/.local/share/man" ] \
    && export MANPATH="$HOME/.local/share/man"

# Tree
export TREE_CHARSET='utf-8'