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:
Manuel Faux 2015-11-22 11:38:07 +01:00
parent 22632aac7c
commit 6edd158189

View File

@ -1,6 +1,10 @@
# if using GNU screen, let the zsh tell screen what the title and hardstatus # if using GNU screen, let the zsh tell screen what the title and hardstatus
# of the tab window should be. # of the tab window should be.
if [[ "$TERM" == screen* ]]; then if [[ "$TERM" == screen* ]]; then
# Unset title() function defined in lib/termsupport.zsh to prevent
# overwriting our screen titles
title(){}
if [[ $_GET_PATH == '' ]]; then if [[ $_GET_PATH == '' ]]; then
_GET_PATH='echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USER/~/"' _GET_PATH='echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USER/~/"'
fi fi