X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=03c27d1d43257e3882740c23b9ead4d4227b6727;hb=a096c58879bbeed296a77af0ba31e5da711e223e;hp=755b599519318be330d11a7d11b905ecde32542b;hpb=b5870cf1254cc392a7fe5227b0ed5177bed30d22;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 755b599..03c27d1 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -443,7 +443,9 @@ fi # precmd () { setopt promptsubst; [[ -o interactive ]] && jobs -l; - setopt transient_rprompt # make sure to use right prompt only when not running a command + # make sure to use right prompt only when not running a command + is4 && setopt transient_rprompt + is4 && [[ -z $NOPRECMD ]] && precmd () { [[ -n $NOPRECMD ]] && return 0 # allow manual overwriting of RPROMPT @@ -1027,7 +1029,7 @@ If you want to use xinit anyway please call \"/usr/bin/xinit\"." } _dchange() { _files -W /usr/share/doc -/ } compdef _dchange dchange - + # use "uchange " to view upstream's changelog of the package: uchange() { if [ -r /usr/share/doc/${1}/changelog.gz ] ; then