mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 07:56:05 +02:00
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".
This commit is contained in:
1 parent
35a6725970
commit
fee61a7c47
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user