Makes it very easy to spot what isn't running on a local machine.
# User name (%n) in bright green.
local user="${green}%B%n%b${default}"
- # Host name (%m) in bright green.
+ # Host name (%m) in bright green; underlined if running on a remote system
+ # through SSH.
local host="${green}%B%m%b${default}"
+ if [[ -n $SSH_CONNECTION ]]; then
+ host="%U${host}%u"
+ fi
+
# Number of background processes in yellow.
local background="%(1j.${yellow}%j${default}.)"
# Exit code in bright red if not zero.