X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=5466b635d7dcde4b3ee1dc57cc738469a59ab3c4;hb=73d7a9a13106115c65b57734e1fca59b23152c3f;hp=addc8e6fbfc1135eabc32a90760dba20e84af4ed;hpb=2bc1a7520ac89e8d72fc88a114f5040c066125f5;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index addc8e6..5466b63 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Don Nov 30 16:15:06 CET 2006 [mika] +# Latest change: Son Dez 17 13:52:04 CET 2006 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -239,8 +239,8 @@ fi autoload run-help # use via 'esc-h' # completion system - if autoload -U compinit && [ -f "/usr/share/zsh/$ZSH_VERSION/functions/Completion/compinit" ] && compinit 2>/dev/null ; then - compinit + if autoload -U compinit && compinit 2>/dev/null ; then + compinit 2>/dev/null || print 'Notice: no compinit available :(' else print 'Notice: no compinit available :(' function zstyle { } @@ -250,7 +250,7 @@ fi is4 && autoload -U zed # use ZLE editor to edit a file or function is4 && for mod in complist deltochar mathfunc ; do - zmodload -i zsh/${mod} + zmodload -i zsh/${mod} 2>/dev/null || print "Notice: no ${mod} available :(" done # autoload zsh modules when they are referenced @@ -379,7 +379,9 @@ fi # "cd -" won't work after login by just setting $OLDPWD, so cd $dirstack[0] && cd $OLDPWD fi - chpwd() { dirs -pl >! ~/.zdirs } + chpwd() { + builtin dirs -pl >! ~/.zdirs + } # }}} # {{{ display battery status on right side of prompt via running 'BATTERY=1 zsh'