From: Tobias Brunner Date: Wed, 15 May 2013 08:32:41 +0000 (+0200) Subject: testing: Set terminal title when logging in via SSH X-Git-Tag: 5.1.0dr1~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6e1eda6d09005006f0357df4b9e4088044367cb;p=thirdparty%2Fstrongswan.git 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. --- diff --git a/testing/hosts/default/root/.bashrc b/testing/hosts/default/root/.bashrc new file mode 100644 index 0000000000..078dbd601f --- /dev/null +++ b/testing/hosts/default/root/.bashrc @@ -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 +