1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-09-27 15:31:25 -07:00

lowercase hostname

This commit is contained in:
Connor Olding 2016-01-01 20:23:33 -08:00
parent aca3327f03
commit 6784de8750

View file

@ -136,9 +136,9 @@ fi
# note: zsh adds a % symbol to newline-less output, so bash prompt is overkill
function {
local good='green'
[[ "$HOST" == "banshee" ]] && good='cyan'
[[ "$HOST" == "spectre" ]] && good='white'
[[ "$HOST" == "wraith" ]] && good='yellow'
[[ "${(L)HOST}" == "banshee" ]] && good='cyan'
[[ "${(L)HOST}" == "spectre" ]] && good='white'
[[ "${(L)HOST}" == "wraith" ]] && good='yellow'
PROMPT='%{'$'\e''[10m%}%b%(?.%K{'"$good"'}.%K{red})%15F%#%f%k '
RPROMPT='%8F%h%b'
}