mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
replace $(hostname) with $(hostname -s) so that the behavior is consistant across Linux and OSX
This commit is contained in:
parent
757fa3314d
commit
7415b0d0b0
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ local user="%(!.%{$fg[blue]%}.%{$fg[blue]%})%n%{$reset_color%}"
|
||||||
|
|
||||||
# Hostname part. compressed and colorcoded per host_repr array
|
# Hostname part. compressed and colorcoded per host_repr array
|
||||||
# if not found, regular hostname in default color
|
# 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
|
# Compacted $PWD
|
||||||
local pwd="%{$fg[blue]%}%c%{$reset_color%}"
|
local pwd="%{$fg[blue]%}%c%{$reset_color%}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue