special color for special hostname
This commit is contained in:
parent
16f294cbf2
commit
675f8d9c56
|
@ -41,5 +41,19 @@ function get_hostname_color () {
|
|||
done
|
||||
printf "$col"
|
||||
}
|
||||
export ZSH_THEME_HOSTNAME_COLOR="$(get_hostname_color)"
|
||||
case "$HOST" in
|
||||
"devbox")
|
||||
ZSH_THEME_HOSTNAME_COLOR="002"
|
||||
;;
|
||||
"pallet")
|
||||
ZSH_THEME_HOSTNAME_COLOR="004"
|
||||
;;
|
||||
"pewter")
|
||||
ZSH_THEME_HOSTNAME_COLOR="005"
|
||||
;;
|
||||
*)
|
||||
ZSH_THEME_HOSTNAME_COLOR="$(get_hostname_color)"
|
||||
;;
|
||||
esac
|
||||
export ZSH_THEME_HOSTNAME_COLOR
|
||||
unset -f get_hostname_color
|
||||
|
|
Loading…
Reference in New Issue