From: Oleg Broytman Date: Tue, 25 May 2021 23:19:32 +0000 (+0300) Subject: Fix(bin/xtitle): Use `$(hostname)` instead of `${HOSTNAME}` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f02fb93958490628fed76ad337c329dcdb83c704;p=dotfiles.git Fix(bin/xtitle): Use `$(hostname)` instead of `${HOSTNAME}` `${HOSTNAME}` is a bashism. --- diff --git a/bin/xtitle b/bin/xtitle index b88560a..9fc678e 100755 --- a/bin/xtitle +++ b/bin/xtitle @@ -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