diff options
-rw-r--r-- | bash/bashrc | 9 | ||||
-rw-r--r-- | sh/shrc | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/bash/bashrc b/bash/bashrc index 066e2d55..cb5cb3d3 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -34,15 +34,6 @@ unset -v MAILCHECK # Use a more compact format for the time builtin's output TIMEFORMAT='real:%lR user:%lU sys:%lS' -# Never beep at me -setterm -bfreq -blength 2>/dev/null - -# Turn off flow control and control character echo -stty -ixon -ctlecho 2>/dev/null - -# Don't let anyone write(1) to my terminal -mesg n - # Don't allow the creation of aliases, functions are better enable -n alias unalias @@ -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 |