From: Michael Prokop Date: Fri, 26 Jun 2020 11:38:55 +0000 (+0200) Subject: zshrc: enable transient_rprompt to fix sad-smiley situation in rprompt X-Git-Tag: v0.17.4~2^2 X-Git-Url: https://git.grml.org/?p=grml-etc-core.git;a=commitdiff_plain;h=401702af1f88b1081da095cd02c9681049186d63 zshrc: enable transient_rprompt to fix sad-smiley situation in rprompt This feature got lost in commit 08ab5d9, but nobody really noticed this until we got annoyed by the sad-smiley on the right sight of the prompt (rprompt) and wanted to disable the smiley overall. :) But once the transient_rprompt option is active, the annoying c/p behavior with the sad-smiley no longer exists, while the feature is still there. FTR, the rprompt in the grml prompt can be disabled e.g. with: zstyle ':prompt:grml:right:setup' use-rprompt false Thanks: Frank Terbeck Closes: grml/grml-etc-core#107 --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 2690cfd..1d161d7 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2478,6 +2478,9 @@ else function precmd () { (( ${+functions[vcs_info]} )) && vcs_info; } fi +# make sure to use right prompt only when not running a command +is41 && setopt transient_rprompt + # Terminal-title wizardry function ESC_print () {