X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=9f5b88ef568bbaf8e240f8536e3714963437b1dd;hb=refs%2Ftags%2F0.2.49;hp=755b599519318be330d11a7d11b905ecde32542b;hpb=b5870cf1254cc392a7fe5227b0ed5177bed30d22;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 755b599..9f5b88e 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: Sam Apr 21 23:57:20 CEST 2007 [mika] +# Latest change: Son Apr 22 18:37:24 CEST 2007 [mika] ################################################################################ # This file is sourced only for interactive shells. It # should contain commands to set up aliases, functions, @@ -443,11 +443,16 @@ 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 - [[ -n $RPROMPT ]] && echo -n $'\ekzsh\e\\' && return 0 + if [[ -n $RPROMPT ]] ; then + [[ $TERM == screen* ]] && echo -n $'\ekzsh\e\\' + return 0 + fi # just use DONTSETRPROMPT=1 to be able to overwrite RPROMPT if [[ -z $DONTSETRPROMPT ]] ; then if [[ -n $BATTERY ]] ; then @@ -1027,7 +1032,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