From 401702af1f88b1081da095cd02c9681049186d63 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 26 Jun 2020 13:38:55 +0200 Subject: [PATCH] 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 --- etc/zsh/zshrc | 3 +++ 1 file changed, 3 insertions(+) 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 () { -- 2.1.4