]> arthur.barton.de Git - ax-zsh.git/commitdiff
axttyinfo: Show LANG only when actually set
authorAlexander Barton <alex@barton.de>
Fri, 21 Jan 2022 17:41:45 +0000 (18:41 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 21 Jan 2022 17:41:45 +0000 (18:41 +0100)
bin/axttyinfo

index 6efd51d6019b2476eaf836a5fba98ab24712d5a4..613b782afbffa5b2b85f0e3de19f66a8da992611 100755 (executable)
@@ -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