replace $(hostname) with $(hostname -s) so that the behavior is consistant across Linux and OSX

This commit is contained in:
Daniel Nelson 2011-10-10 12:52:41 -07:00
commit 7415b0d0b0

View file

@ -21,7 +21,7 @@ local user="%(!.%{$fg[blue]%}.%{$fg[blue]%})%n%{$reset_color%}"
# Hostname part. compressed and colorcoded per host_repr array
# if not found, regular hostname in default color
local host="@${host_repr[$(hostname)]:-$(hostname)}%{$reset_color%}"
local host="@${host_repr[$(hostname -s)]:-$(hostname -s)}%{$reset_color%}"
# Compacted $PWD
local pwd="%{$fg[blue]%}%c%{$reset_color%}"