shift
done
-print -Pn -- "$fg[white]$FX[bold]$(hostname)$FX[no-bold] "
+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:-?}); "
if [[ "$TERM_PROGRAM" == "Apple_Terminal" && "$TERM" != "screen"* ]]; then
axzsh_terminal_set_icon_title "$LOGNAME@$SHORT_HOST"
# Update CWD in Terminal.app
- local url=$(echo "file://$HOSTNAME$PWD" | sed -e 's| |%20|g')
+ local url=$(echo "file://$HOST$PWD" | sed -e 's| |%20|g')
printf '\e]7;%s\a' "$url"
else
axzsh_terminal_set_icon_title "$LOGNAME@$SHORT_HOST:$PWD"
# AX-ZSH: Alex' Modular ZSH Configuration
# 30_hostname.zprofile: Initialize hostname settings
-# Setup "HOSTNAME" variable
-[[ -z "$HOSTNAME" ]] && HOSTNAME=$( hostname )
+# Setup legacy "HOSTNAME" variable (use "HOST"!)
+[[ -z "$HOSTNAME" ]] && HOSTNAME="$HOST"
export HOSTNAME
# Setup "SHORT_HOST" variable