X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bin%2Fxtitle;h=4c1cefc987e92d09ebefa7fda5670ccac1ddc971;hb=322694eebf3fe68372786b97a60513142d99ac93;hp=6df8cdc282266507ad66b887b28e82fbdc0dbcaa;hpb=58d23a654eb7f78f4ba203425b64583a9ae4e6ca;p=dotfiles.git diff --git a/bin/xtitle b/bin/xtitle index 6df8cdc..4c1cefc 100755 --- a/bin/xtitle +++ b/bin/xtitle @@ -7,12 +7,11 @@ case "$TERM" in else TITLE="$@" fi - echo -ne "\033]0;${TITLE}\007" # Set xterm caption - ;; -esac - -case "$TERM" in - screen*) - echo -ne "\033k${TITLE}\033\\" # Set screen caption + echo -ne "\033]0;${TITLE}\007" # Set xterm title + case "$TERM" in + screen*) + echo -ne "\033k${TITLE}\033\\" # Set screen/tmux caption + ;; + esac ;; esac