diff options
-rw-r--r-- | bash/bashrc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bash/bashrc b/bash/bashrc index 917526ce..7210113a 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -8,6 +8,11 @@ if [[ $- != *i* ]] ; then return fi +# Don't do anything if running a restricted shell +if shopt -q restricted_shell ; then + return +fi + # Keep around a million lines of history in file HISTFILESIZE=$((2 ** 20)) |