Update 05.04.2026
This commit is contained in:
@@ -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
|
||||
@@ -8,7 +12,7 @@ if [[ "$TERM" == screen* ]]; then
|
||||
_GET_HOST='echo $HOST | sed "s/\..*//"'
|
||||
fi
|
||||
|
||||
# use the current user as the prefix of the current tab title
|
||||
# use the current user as the prefix of the current tab title
|
||||
TAB_TITLE_PREFIX='"`'$_GET_HOST'`:`'$_GET_PATH' | sed "s:..*/::"`$PROMPT_CHAR"'
|
||||
# when at the shell prompt, show a truncated version of the current path (with
|
||||
# standard ~ replacement) as the rest of the title.
|
||||
|
||||
Reference in New Issue
Block a user