mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
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:
parent
b6ea876971
commit
014cd55ae9
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue