blob: 8dab79c6c175a7b0fde27e311c6896de725d6752 (
plain) (
tree)
|
|
# Make sure the shell is interactive
case $- in
*i*) ;;
*) return ;;
esac
# Don't let anyone write(1) to my terminal
command -p mesg n
# Never beep at me
command -p setterm -bfreq -blength 2>/dev/null
# Turn off flow control and control character echo
command -p stty -ixon -ctlecho 2>/dev/null
# Keep around 4K lines of history in memory
HISTSIZE=$((1 << 12))
# Don't warn me about new mail
unset -v MAILCHECK
# Load all the POSIX-compatible functions from ~/.shrc.d; more advanced shells
# like bash will have their own functions
for sh in "$HOME"/.shrc.d/*.sh ; do
[ -e "$sh" ] && . "$sh"
done
unset -v sh
|