Use $HOSTNAME instead of $(hostname) in .bash*

This commit is contained in:
Darren 'Tadgy' Austin 2021-03-26 05:37:13 +00:00
commit 233680cd76
2 changed files with 4 additions and 4 deletions

View file

@ -121,7 +121,7 @@ hash screen >/dev/null 2>&1 && {
screen_attach
# Output some screen info.
export SCREENDIR="$HOME/.screen-$(hostname --short)"
export SCREENDIR="$HOME/.screen-${HOSTNAME%%.*}"
if [[ ! -e ~/.hushlogin ]]; then
if [[ ! -z "$STY" ]]; then
echo "Screen $STY, window $WINDOW."