diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-25 14:35:50 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-25 14:35:50 +1300 |
commit | b485b356ca4890eef7df132ee4b12642af254ab5 (patch) | |
tree | e1e5c883786de224bf43f0e039e959e268f0dc63 | |
parent | Show prompt prefix if a shell is exotic (diff) | |
download | dotfiles-b485b356ca4890eef7df132ee4b12642af254ab5.tar.gz dotfiles-b485b356ca4890eef7df132ee4b12642af254ab5.zip |
Ignore `unalias` failed call output in zsh
zsh 5.0.7 doesn't appear to implement -a for zsh, but 5.2 does
-rw-r--r-- | zsh/zshrc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,7 +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 +# fc(1) and type(1). Ignore output, as older Zsh seems not to implement this +# (quelle surprise). +unalias -a >/dev/null 2>&1 # If ENV is set, source it to get all the POSIX-compatible interactive stuff [[ -n $ENV ]] && source "$ENV" |