summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-11-25 13:51:12 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-11-25 13:51:12 +0000
commit42c9c4873fed5bc4f42a17e6c37bf237a7b5385a (patch)
tree3010d803b7875b9090ce14757193bec3bfdcfdf2 /bashrc
parent8e2e9cd9f02d6b685083796d33d08960b24668dc (diff)
downloadliw-dot-files-42c9c4873fed5bc4f42a17e6c37bf237a7b5385a.tar.gz
Fix str2xterm's screen window title setting
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc18
1 files changed, 9 insertions, 9 deletions
diff --git a/bashrc b/bashrc
index 251fb44..7e91913 100644
--- a/bashrc
+++ b/bashrc
@@ -1,13 +1,13 @@
str2xterm() {
- case "$TERM" in
- xterm*)
- printf '\033]1;%s\07' "$1" > /dev/tty
- printf '\033]2;%s\07' "$1" > /dev/tty
- ;;
- screen)
- printf '\033]0;%s\a' "$1" > /dev/tty
- ;;
- esac
+ case "$TERM" in
+ xterm*)
+ printf '\033]1;%s\07' "$1" > /dev/tty
+ printf '\033]2;%s\07' "$1" > /dev/tty
+ ;;
+ screen)
+ printf '\ek%s\e\\' "$1" > /dev/tty
+ ;;
+ esac
}
find_git_root()