add screen title to tab window title

Now running screen -S testscreen will display the XXXXX:testscren in the
title window (where XXXXX is the screen session number)
This commit is contained in:
Ali Ebrahim 2013-04-26 19:13:53 -07:00
commit 014cd55ae9

View file

@ -19,7 +19,7 @@ if [[ "$TERM" == screen* ]]; then
# use the current path (with standard ~ replacement) in square brackets as the
# prefix of the tab window hardstatus.
TAB_HARDSTATUS_PREFIX='"[`'$_GET_PATH'`] "'
TAB_HARDSTATUS_PREFIX=$STY'"[`'$_GET_PATH'`] "'
# when at the shell prompt, use the shell name (truncated to remove the path to
# the shell) as the rest of the title
TAB_HARDSTATUS_PROMPT='$SHELL:t'
@ -51,4 +51,4 @@ if [[ "$TERM" == screen* ]]; then
eval "tab_hardstatus=$TAB_HARDSTATUS_PREFIX:$TAB_HARDSTATUS_PROMPT"
screen_set $tab_title $tab_hardstatus
}
fi
fi