blob: 5d481bb4bbf36f34f878ed542c36aa132c389f13 (
plain) (
tree)
|
|
# Emacs-style key bindings; these are present in ksh88 and pdksh
set -o braceexpand
set -o emacs
# Track locations of binaries
set -o trackall
# Use subshells to test these newer options, as ksh93 seems to get very upset
# if you try to set an option and it doesn't exist
# Try to get "**" as a recursive glob
(set -o globstar) 2>/dev/null &&
set -o globstar
# Try to get !-style history expansion
(set -o histexpand) 2>/dev/null &&
set -o histexpand
# Save history
HISTFILE=$HOME/.ksh_history
HISTSIZE=$((1 << 10))
# Load any supplementary scripts
for kshrc in "$HOME"/.kshrc.d/*.ksh ; do
[[ -e $kshrc ]] && . "$kshrc"
done
unset -v kshrc
|