X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/3e15c7e178bf62658a23570a628ff6e989d32ea9..a14f1f28cb7f534b7e5a44895b71e0153bb6426f:/zshrc diff --git a/zshrc b/zshrc index a181dbd..6f8f6a3 100644 --- a/zshrc +++ b/zshrc @@ -42,7 +42,9 @@ autoload -U ${fpath[1]}/*(:t) # loads all functions in the first element of fp # set up prompt autoload -U colors && colors -PROMPT="%(?..%{$fg_bold[white]%}[%?])%{$reset_color%}[%D{%k:%M} %n@%{$fg[green]%}%m%{$reset_color%}]%# " +[[ $(hostname) == "tardis" ]] && hostcolor=red +[[ $(hostname) == "shada" ]] && hostcolor=green +PROMPT="%(?..%{$fg_bold[white]%}[%?])%{$reset_color%}[%D{%k:%M} %n@%{$fg[$hostcolor]%}%m%{$reset_color%}]%# " RPROMPT="%{$fg[green]%}%~%{$reset_color%}" # make cd act like pushd