grml-etc-core (0.2.49) unstable; urgency=low
- * /etc/zsh/zshrc: restore old behaviour of RPROMPT, the 'allow
- manual overriding of RPROMPT' is just too broken currently.
+ * /etc/zsh/zshrc: improve code for 'manual overriding of RPROMPT'
+ [thanks for helping, ft!]
-- Michael Prokop <mika@grml.org> Sun, 22 Apr 2007 18:37:27 +0200
is4 && [[ -z $NOPRECMD ]] && precmd () {
[[ -n $NOPRECMD ]] && return 0
# allow manual overwriting of RPROMPT
- # [[ -n $RPROMPT ]] && 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