Skip to content

Commit f47786e

Browse files
authored
prefer uname -n to hostname
Suggestion from @YHNdnzj to improve compatibility
1 parent 384e8e0 commit f47786e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/fish_prompt.fish

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function fish_prompt
1616
end
1717

1818
# Setup colors
19-
set -l hostcolor (set_color (hostname | md5sum | cut -f1 -d' ' | tr -d '\n' | tail -c6))
19+
set -l hostcolor (set_color (uname -n | md5sum | cut -f1 -d' ' | tr -d '\n' | tail -c6))
2020
set -l normal (set_color normal)
2121
set -l white (set_color FFFFFF)
2222
set -l turquoise (set_color 5fdfff)

0 commit comments

Comments
 (0)