From f02fb93958490628fed76ad337c329dcdb83c704 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 26 May 2021 02:19:32 +0300 Subject: [PATCH] Fix(bin/xtitle): Use `$(hostname)` instead of `${HOSTNAME}` `${HOSTNAME}` is a bashism. --- bin/xtitle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5