diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2012-02-24 01:38:56 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2012-02-24 01:38:56 +1300 |
commit | 0adfce91b324a5503333dd9464cca4d2c017158a (patch) | |
tree | 296d713de01f8bf436b2e7b4e42028c26943459b /bash | |
parent | Set titles for xterm/screen/tmux. (diff) | |
download | dotfiles-0adfce91b324a5503333dd9464cca4d2c017158a.tar.gz dotfiles-0adfce91b324a5503333dd9464cca4d2c017158a.zip |
Update screen title on every prompt.
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc | 4 |
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 |