Updated title to not be overwritten
This commit is contained in:
parent
db4eafc431
commit
506023281f
1 changed files with 5 additions and 12 deletions
17
.zshrc
17
.zshrc
|
|
@ -132,21 +132,14 @@ alias uzbl="uzbl-browser"
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
args() { echo $#; }
|
args() { echo $#; }
|
||||||
#title (){
|
title() { WINTITLE="$*"; print -Pn "\e]0;$WINTITLE\a" }
|
||||||
# if (( ${#argv} == 0 )); then
|
|
||||||
# TITLE=$HOSTTITLE
|
|
||||||
# return
|
|
||||||
# fi
|
|
||||||
# TITLE=$*
|
|
||||||
#}
|
|
||||||
title() { print -Pn "\e]0;$*\a" }
|
|
||||||
if [ x$WINDOW != x ]; then
|
if [ x$WINDOW != x ]; then
|
||||||
# Running under screen(1)
|
# Running under screen(1)
|
||||||
precmd () { print -Pn "\e]0;%m [W$WINDOW] [%~]\a" }
|
precmd() { [ -z "$WINTITLE" ] && print -Pn "\e]0;%m [W$WINDOW] [%~]\a" || : }
|
||||||
preexec () { print -Pn "\e]0;%m [W$WINDOW] [$1]\a" }
|
preexec() { [ -z "$WINTITLE" ] && print -Pn "\e]0;%m [W$WINDOW] [$1]\a" || : }
|
||||||
else
|
else
|
||||||
precmd () { print -Pn "\e]0;%m [%~]\a" }
|
precmd() { [ -z "$WINTITLE" ] && print -Pn "\e]0;%m [%~]\a" || : }
|
||||||
preexec () { print -Pn "\e]0;%m [$1]\a" }
|
preexec() { [ -z "$WINTITLE" ] && print -Pn "\e]0;%m [$1]\a" || : }
|
||||||
fi
|
fi
|
||||||
resize() { printf '\33]50;%s%d\007' "xft:Terminus:pixelsize=" $1 ",xft:IPAGothic:antialias=true" }
|
resize() { printf '\33]50;%s%d\007' "xft:Terminus:pixelsize=" $1 ",xft:IPAGothic:antialias=true" }
|
||||||
asdf() {
|
asdf() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue