[Pkg-zsh-devel] [PATCH 4/6] Only unalias `run-help' if the alias actually exists

Frank Terbeck ft at bewatermyfriend.org
Mon Mar 5 23:02:10 UTC 2012


Signed-off-by: Frank Terbeck <ft at bewatermyfriend.org>
---
 debian/zshrc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debian/zshrc b/debian/zshrc
index eaf022c..5eb80b9 100644
--- a/debian/zshrc
+++ b/debian/zshrc
@@ -84,5 +84,5 @@ zstyle ':completion:*:sudo:*' command-path /usr/local/sbin \
                                            /bin            \
                                            /usr/X11R6/bin
 
-unalias run-help
+(( ${+aliases[run-help]} )) && unalias run-help
 autoload run-help
-- 
1.7.9.188.g12766




More information about the Pkg-zsh-devel mailing list