diff options
-rw-r--r-- | bash/bashrc | 5 | ||||
-rw-r--r-- | yash/yashrc | 5 | ||||
-rw-r--r-- | zsh/zshrc | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/bash/bashrc b/bash/bashrc index 3070c00c..ca13c4bf 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -9,6 +9,11 @@ esac # shellcheck disable=SC2128 [ -n "$BASH_VERSINFO" ] && shopt -q restricted_shell && return +# Clear away all aliases; we do this here rather than in $ENV because the ksh +# family of shells relies on aliases to implement certain POSIX utilities like +# fc(1) and type(1) +unalias -a + # If ENV is set, source it to get all the POSIX-compatible interactive stuff; # we should be able to do this even if we're running a truly ancient Bash [ -n "$ENV" ] && . "$ENV" diff --git a/yash/yashrc b/yash/yashrc index a731c80b..c2b2df26 100644 --- a/yash/yashrc +++ b/yash/yashrc @@ -1,3 +1,8 @@ +# Clear away all aliases; we do this here rather than in $ENV because the ksh +# family of shells relies on aliases to implement certain POSIX utilities like +# fc(1) and type(1) +unalias -a + # Load POSIX interactive shell startup files, because Yash won't do it if not # invoked as sh(1) [ -e "$ENV" ] && . "$ENV" @@ -1,6 +1,11 @@ # Emacs keybindings even if EDITOR is vi(1) bindkey -e +# Clear away all aliases; we do this here rather than in $ENV because the ksh +# family of shells relies on aliases to implement certain POSIX utilities like +# fc(1) and type(1) +unalias -a + # If ENV is set, source it to get all the POSIX-compatible interactive stuff [[ -n $ENV ]] && source "$ENV" |