Moved the setting of GNU Screen window number.
This commit is contained in:
parent
3c273c4ce7
commit
c9e510696c
@ -2,13 +2,6 @@
|
|||||||
autoload -U colors
|
autoload -U colors
|
||||||
colors -i
|
colors -i
|
||||||
|
|
||||||
# Set the GNU Screen window number.
|
|
||||||
if [[ -n "$WINDOW" ]]; then
|
|
||||||
SCREEN_NO="%B$WINDOW%b "
|
|
||||||
else
|
|
||||||
SCREEN_NO=""
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set the default prompt theme.
|
# Set the default prompt theme.
|
||||||
PS1="%n@%m:%~%# "
|
PS1="%n@%m:%~%# "
|
||||||
|
|
||||||
|
@ -3,6 +3,13 @@ if [[ "$TERM" == 'dumb' ]]; then
|
|||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set the GNU Screen window number.
|
||||||
|
if [[ -n "$WINDOW" ]]; then
|
||||||
|
SCREEN_NO="%B$WINDOW%b "
|
||||||
|
else
|
||||||
|
SCREEN_NO=""
|
||||||
|
fi
|
||||||
|
|
||||||
# Fully supports GNU Screen, iTerm, and most modern xterm and rxvt terminals.
|
# Fully supports GNU Screen, iTerm, and most modern xterm and rxvt terminals.
|
||||||
# Partially supports Mac OS X Terminal since it can't set window and tab separately.
|
# Partially supports Mac OS X Terminal since it can't set window and tab separately.
|
||||||
# Usage: title "tab title" "window title"
|
# Usage: title "tab title" "window title"
|
||||||
@ -37,4 +44,3 @@ function preexec {
|
|||||||
local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]}
|
local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]}
|
||||||
title "$CMD" "%100>...>$2%<<"
|
title "$CMD" "%100>...>$2%<<"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user