mirror of
https://github.com/notwa/rc
synced 2024-11-05 04:39:03 -08:00
lowercase hostname
This commit is contained in:
parent
aca3327f03
commit
6784de8750
1 changed files with 3 additions and 3 deletions
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue