aboutsummaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-25 14:35:50 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-25 14:35:50 +1300
commitb485b356ca4890eef7df132ee4b12642af254ab5 (patch)
treee1e5c883786de224bf43f0e039e959e268f0dc63 /zsh
parente3f97d6c12e6e311b155ce24ce586717b1abc18b (diff)
downloaddotfiles-b485b356ca4890eef7df132ee4b12642af254ab5.tar.gz
Ignore `unalias` failed call output in zsh
zsh 5.0.7 doesn't appear to implement -a for zsh, but 5.2 does
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zshrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 796e8680..b4c60747 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -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"