aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hosts
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-05-15 10:32:41 +0200
committerTobias Brunner <tobias@strongswan.org>2013-05-15 10:35:48 +0200
commitc6e1eda6d09005006f0357df4b9e4088044367cb (patch)
treeafa1b9a3d991018de2d9919ee525485cbb3071f2 /testing/hosts
parentbd538e8c4ac971bbfbc6d5fea5d8d945f5f607a3 (diff)
downloadstrongswan-c6e1eda6d09005006f0357df4b9e4088044367cb.tar.bz2
strongswan-c6e1eda6d09005006f0357df4b9e4088044367cb.tar.xz
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.
Diffstat (limited to 'testing/hosts')
-rw-r--r--testing/hosts/default/root/.bashrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/hosts/default/root/.bashrc b/testing/hosts/default/root/.bashrc
new file mode 100644
index 000000000..078dbd601
--- /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
+