]> git.phdru.name Git - dotfiles.git/commitdiff
Fix(bin/xtitle): Use `$(hostname)` instead of `${HOSTNAME}`
authorOleg Broytman <phd@phdru.name>
Tue, 25 May 2021 23:19:32 +0000 (02:19 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 25 May 2021 23:19:32 +0000 (02:19 +0300)
`${HOSTNAME}` is a bashism.

bin/xtitle

index b88560ad384ae3ddb23149b4f1df64d436a9e71c..9fc678e5b25e8f62ebb8096e0e0bd30028010179 100755 (executable)
@@ -3,7 +3,7 @@
 case "$TERM" in
    *rxvt*|screen*|*term*|vt100)
       if [ -z "$1" ]; then
-         TITLE="${USER}@${HOSTNAME}:$(echo ${PWD} | sed -e "s|^${HOME}|~|")"
+         TITLE="${USER}@`hostname`:$(echo ${PWD} | sed -e "s|^${HOME}|~|")"
       else
          TITLE="$@"
       fi