diff options
author | elijah <elijah@riseup.net> | 2013-05-30 17:06:14 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-05-30 17:06:14 -0700 |
commit | c92d3ac0780e813a5440c5e475bfdba5de5a0447 (patch) | |
tree | 485c5df2038e4433db6087e50c9fc9af14a07aad /puppet/modules/site_sshd/files | |
parent | a39f9981e7227b8e4668937a7bf0f658e1fbe8bd (diff) |
site_sshd -- added xterm title, optional support for mosh
Diffstat (limited to 'puppet/modules/site_sshd/files')
-rw-r--r-- | puppet/modules/site_sshd/files/xterm-title.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet/modules/site_sshd/files/xterm-title.sh b/puppet/modules/site_sshd/files/xterm-title.sh new file mode 100644 index 00000000..3cff0e3a --- /dev/null +++ b/puppet/modules/site_sshd/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 |