blob: 6326827288ae73ac55f0b154ee1255fb3d7ab5f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# 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
# 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
|