aboutsummaryrefslogtreecommitdiff
path: root/sh/profile
blob: 5e4f58911546dbc46c9d0124daba65ed2c2a3748 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Set editor
EDITOR='vi'
VISUAL=$EDITOR
export EDITOR VISUAL

# Set pager
PAGER='less'
export PAGER

# Add ~/.local/bin to PATH if it exists
if [ -d "$HOME"/.local/bin ]; then
    PATH="$HOME/.local/bin:$PATH"
fi
export PATH

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