summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/files
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/site_config/files')
-rw-r--r--puppet/modules/site_config/files/xterm-title.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet/modules/site_config/files/xterm-title.sh b/puppet/modules/site_config/files/xterm-title.sh
new file mode 100644
index 00000000..3cff0e3a
--- /dev/null
+++ b/puppet/modules/site_config/files/xterm-title.sh
@@ -0,0 +1,8 @@
+# If this is an xterm set the title to user@host:dir
+case "$TERM" in
+xterm*|rxvt*)
+ PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
+ ;;
+*)
+ ;;
+esac