aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-27 12:05:05 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-27 12:05:05 +1200
commit2eaae1d17df5f3e060b33cc13b5a754a5ac6ac53 (patch)
tree649ba1351a3ad518e7db45ebca6295e497685a32 /sh
parentFix some comments in options.sh (diff)
downloaddotfiles-2eaae1d17df5f3e060b33cc13b5a754a5ac6ac53.tar.gz
dotfiles-2eaae1d17df5f3e060b33cc13b5a754a5ac6ac53.zip
Move bash-independent code ~/.bashrc -> ~/.shrc
Diffstat (limited to 'sh')
-rw-r--r--sh/shrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/sh/shrc b/sh/shrc
index deb55cc2..63268272 100644
--- a/sh/shrc
+++ b/sh/shrc
@@ -4,6 +4,15 @@ case $- in
*) 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