aboutsummaryrefslogtreecommitdiff
path: root/ksh/kshrc
blob: c45d4018917e5b0542ff2547b57c281ecc9e6b62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Emacs-style key bindings
set -o braceexpand
set -o emacs

# Save history
HISTFILE=$HOME/.ksh_history
HISTSIZE=$((1 << 10))

# If HOST and HOSTNAME aren't set by this version of ksh, set them
HOSTNAME=$(uname -n)
HOST=${HOSTNAME%%.*}

# Load any supplementary scripts
for kshrc in "$HOME"/.kshrc.d/*.ksh ; do
    [[ -e $kshrc ]] && . "$kshrc"
done
unset -v kshrc