diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2009-04-22 10:29:00 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2009-04-22 10:29:00 +0300 |
commit | e9020ac7fa8e61da3635907657dc0386baf2cb25 (patch) | |
tree | 0f1d3dd585209c36fce3acd1054636e87fd5d409 /git-prompt.sh | |
parent | current-command is show in label (xterm title) (diff) | |
download | git-prompt-e9020ac7fa8e61da3635907657dc0386baf2cb25.tar.gz git-prompt-e9020ac7fa8e61da3635907657dc0386baf2cb25.tar.bz2 git-prompt-e9020ac7fa8e61da3635907657dc0386baf2cb25.zip |
fixed: lable display for gnu-screen
Diffstat (limited to 'git-prompt.sh')
-rw-r--r-- | git-prompt.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-prompt.sh b/git-prompt.sh index 72d636f..311b9c2 100644 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -136,20 +136,20 @@ set_shell_title() { - xterm_title() { echo -n "]2;${@}" ; } + xterm_title() { echo -n "]2;${@}" ; } # FIXME: replace hardcodes with terminfo codes screen_title() { # FIXME: run this only if screen is in xterm (how to test for this?) xterm_title "sCRn $label$plain_who_where $@" # FIXME $STY not inherited though "su -" - [ "$STY" ] && screen -S $STY -X title "$@" + [ "$STY" ] && screen -S $STY -X title "$*" } case $TERM in screen*) - screen_title "$@" + screen_title "$*" ;; xterm* | rxvt* | gnome-terminal | konsole | eterm | wterm ) |