aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 20960eaa..878a2fa7 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -15,7 +15,7 @@ HISTTIMEFORMAT='%F %T '
HISTIGNORE='ls:ls -l:ls -la:fg:bg:jobs:history'
# Add all commands to the history immediately.
-PROMPT_COMMAND='history -a; history -n'
+PROMPT_COMMAND='history -a;history -n'
# Don't check for mail all the time, it's irritating.
unset MAILCHECK
@@ -73,5 +73,10 @@ case "$TERM" in
PS1="\[\e]0;\h\a\]"${PS1}
TERM=xterm-256color
;;
+
+ # Set screen window title.
+ screen*)
+ PROMPT_COMMAND="printf '\033k$(hostname)\033\\';"${PROMPT_COMMAND}
+ ;;
esac