summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorManuel Faux <manuel@conf.at>2024-06-12 12:19:48 +0200
committerGitHub <noreply@github.com>2024-06-12 03:19:48 -0700
commitfee61a7c4731a1835dfc13f4e6ddc8482d5f1d01 (patch)
tree2270a63a996f5ce92fb52848ad167cceea116285 /plugins
parent35a6725970167278254ab11a996bf04d2186b009 (diff)
downloadzsh-fee61a7c4731a1835dfc13f4e6ddc8482d5f1d01.tar.gz
zsh-fee61a7c4731a1835dfc13f4e6ddc8482d5f1d01.tar.bz2
zsh-fee61a7c4731a1835dfc13f4e6ddc8482d5f1d01.zip
fix(screen): Prevent title being overwritten (#4633)
lib/termsupport.zsh creates titles for screen which take precedence over titles set by the screen plugin. Unsetting the title() function within the screen plugin prevent this "race-condition".
Diffstat (limited to 'plugins')
-rw-r--r--plugins/screen/screen.plugin.zsh4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/screen/screen.plugin.zsh b/plugins/screen/screen.plugin.zsh
index 26531c40b..375d8750a 100644
--- a/plugins/screen/screen.plugin.zsh
+++ b/plugins/screen/screen.plugin.zsh
@@ -1,6 +1,10 @@
# if using GNU screen, let the zsh tell screen what the title and hardstatus
# of the tab window should be.
if [[ "$TERM" == screen* ]]; then
+ # Unset title() function defined in lib/termsupport.zsh to prevent
+ # overwriting our screen titles
+ title(){}
+
if [[ $_GET_PATH == '' ]]; then
_GET_PATH='echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USERNAME/~/"'
fi