mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Prevent screen plugin title being overwritten by omz core
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".
This commit is contained in:
parent
22632aac7c
commit
6edd158189
1 changed files with 5 additions and 1 deletions
|
|
@ -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/^~$USER/~/"'
|
||||
fi
|
||||
|
|
@ -51,4 +55,4 @@ if [[ "$TERM" == screen* ]]; then
|
|||
eval "tab_hardstatus=$TAB_HARDSTATUS_PREFIX:$TAB_HARDSTATUS_PROMPT"
|
||||
screen_set $tab_title $tab_hardstatus
|
||||
}
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue