From: Alexander Barton Date: Fri, 21 Jan 2022 17:41:45 +0000 (+0100) Subject: axttyinfo: Show LANG only when actually set X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80931b34adb9e3f1f447111e80978532e246c109;p=ax-zsh.git axttyinfo: Show LANG only when actually set --- diff --git a/bin/axttyinfo b/bin/axttyinfo index 6efd51d..613b782 100755 --- a/bin/axttyinfo +++ b/bin/axttyinfo @@ -23,8 +23,9 @@ done print -Pn -- "$fg[white]$FX[bold]$HOST$FX[no-bold] " print -Pn -- "$fg[yellow]$(tty)$FX[reset], " print -Pn -- "$fg[green]$FX[underline]${TERM:-?}$FX[reset] " -print -Pn -- "(${COLUMNS:-?}x${LINES:-?}); " -print -Pn -- "$fg[white]LANG=${LANG:-?}$FX[reset]" +print -Pn -- "(${COLUMNS:-?}x${LINES:-?})" +print -Pn -- "$FX[reset]" +[[ -n "$LANG" ]] && print -Pn -- "; LANG=$LANG" echo [[ -z "$VERBOSE" ]] && return 0