aboutsummaryrefslogtreecommitdiff
path: root/sh/profile
blob: a81d12e02a14d98c291d1f9edef67da1099049d9 (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
# Set editor
export EDITOR='vi'
export VISUAL="$EDITOR"

# Set pager
export PAGER='less'

# Add ~/.local/bin to PATH
[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"
export PATH

# Load any supplementary scripts
if [ -d "$HOME/.profile.d" ]
then
    for file in $HOME/.profile.d/*
    do
        . $file
    done
fi

# If running Bash, try to run .bashrc
[ -n "$BASH" -a -e "$HOME/.bashrc" ] && . $HOME/.bashrc