diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-14 11:15:10 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-14 11:15:10 +0100 |
commit | 4a55495345c46802b32a628a1ed2baa4e4d1e9a1 (patch) | |
tree | 73ec9101ad2af6b3e2a6cec242c2a007306f6a7a | |
parent | Futher minor puppet fixes. (diff) | |
download | profiles-4a55495345c46802b32a628a1ed2baa4e4d1e9a1.tar.gz profiles-4a55495345c46802b32a628a1ed2baa4e4d1e9a1.tar.xz |
Set terminal title on everything.
-rw-r--r-- | files/terminal-name.sh | 8 | ||||
-rw-r--r-- | manifests/common.pp | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/files/terminal-name.sh b/files/terminal-name.sh new file mode 100644 index 0000000..8689cdd --- /dev/null +++ b/files/terminal-name.sh @@ -0,0 +1,8 @@ +case "$TERM" in +xterm*|rxvt*) + PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' + ;; +*) + ;; +esac + diff --git a/manifests/common.pp b/manifests/common.pp index 5f165a1..27416bd 100644 --- a/manifests/common.pp +++ b/manifests/common.pp @@ -44,4 +44,9 @@ class profiles::common ( | EOF } + # Min priority, so it can still be overwritten + file { '/etc/profile.d/00-terminal-name.sh': + source => 'puppet:///modules/profiles/terminal-name.sh', + } + } |