zshrc: fix breakage, which was revealed by a zsh v3.1.7 testrun
authorFrank Terbeck <ft@grml.org>
Thu, 31 Jan 2008 19:28:54 +0000 (20:28 +0100)
committerFrank Terbeck <ft@grml.org>
Thu, 31 Jan 2008 19:28:54 +0000 (20:28 +0100)
With these changes, implementing issue389 actually make sense.

etc/zsh/zshrc

index fc1eedd..671e7c1 100644 (file)
@@ -338,7 +338,7 @@ check_com -c dircolors && eval $(dircolors -b)
 if [[ -n "$BROKEN_COMPLETION_DIR" ]] ; then
     print 'Warning: not setting completion directories because broken files have been found.' >&2
 else
-    [[ -d /etc/zsh/completion.d ]] && fpath+=( /etc/zsh/completion.d )
+    [[ -d /etc/zsh/completion.d ]] && fpath=( $fpath /etc/zsh/completion.d )
     if [[ -d /etc/zsh/functions.d ]] ; then
         fpath+=( /etc/zsh/functions.d )
         for func in /etc/zsh/functions.d/[^_]*[^~] ; do
@@ -1359,7 +1359,7 @@ fi
 
 # {{{ Use hard limits, except for a smaller stack and no core dumps
 unlimit
-limit stack 8192
+is4 && limit stack 8192
 isgrmlcd && limit core 0 # important for a live-cd-system
 limit -s
 # }}}