From b485b356ca4890eef7df132ee4b12642af254ab5 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 25 Jan 2017 14:35:50 +1300 Subject: Ignore `unalias` failed call output in zsh zsh 5.0.7 doesn't appear to implement -a for zsh, but 5.2 does --- zsh/zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'zsh') 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" -- cgit v1.2.3