From 7415b0d0b056085bdee065430f56479a312532a1 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Mon, 10 Oct 2011 12:52:41 -0700 Subject: [PATCH] replace $(hostname) with $(hostname -s) so that the behavior is consistant across Linux and OSX --- themes/dieter.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/dieter.zsh-theme b/themes/dieter.zsh-theme index 0a5e9265b..2b94782f3 100644 --- a/themes/dieter.zsh-theme +++ b/themes/dieter.zsh-theme @@ -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%}"