aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-02-24 01:38:56 +1300
committerTom Ryder <tom@sanctum.geek.nz>2012-02-24 01:38:56 +1300
commit0adfce91b324a5503333dd9464cca4d2c017158a (patch)
tree296d713de01f8bf436b2e7b4e42028c26943459b /bash
parentSet titles for xterm/screen/tmux. (diff)
downloaddotfiles-0adfce91b324a5503333dd9464cca4d2c017158a.tar.gz
dotfiles-0adfce91b324a5503333dd9464cca4d2c017158a.zip
Update screen title on every prompt.
Diffstat (limited to 'bash')
-rw-r--r--bash/bashrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 57d6719d..c50ae7d7 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -74,12 +74,12 @@ case "$TERM" in
# Set title of screen/tmux window.
screen*)
- printf "\033k$(hostname)\033\\"
+ PS1="\[\ek\h\e\\\\\]"${PS1}
;;
# Set xterm title, use 256 colors.
xterm*)
- PS1="\[\e]0;\h\a\]${PS1}"
+ PS1="\[\e]0;\h\a\]"${PS1}
TERM=xterm-256color
;;
esac