testing: Set terminal title when logging in via SSH

Since we always log in as root use a simpler command prompt. And don't
store duplicate commands in the bash command history.
This commit is contained in:
Tobias Brunner
2013-05-15 10:35:48 +02:00
parent bd538e8c4a
commit c6e1eda6d0
+11
View File
@@ -0,0 +1,11 @@
# don't store duplicate entries in the history
export HISTCONTROL=erasedups
# use a simple prompt of host:pwd# (user is always root)
PS1='\h:\w\$ '
# set the terminal title to host:pwd
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME}:${PWD}\007"'
;;
esac