added username@host if logged in over ssh
This commit is contained in:
parent
c7bf6522ec
commit
998695377f
|
@ -78,7 +78,7 @@ function prompt_josh_setup {
|
||||||
'rprompt' '%A%B%S%a%d%m%r%U%u'
|
'rprompt' '%A%B%S%a%d%m%r%U%u'
|
||||||
|
|
||||||
# Define prompts.
|
# Define prompts.
|
||||||
PROMPT='%F{192}${PWD}%f${git_info:+${(e)git_info[prompt]}}%(!. %B%F{red}#%f%b.)${editor_info[keymap]} '
|
PROMPT='${SSH_TTY:+"%F{119}%B%n%b%f%F{7}@%f%F{7}%m%f "}%F{192}${PWD}%f${git_info:+${(e)git_info[prompt]}}%(!. %B%F{red}#%f%b.)${editor_info[keymap]} '
|
||||||
RPROMPT='${editor_info[overwrite]}${VIM:+" %B%F{green}V%f%b"}${git_info[rprompt]}'
|
RPROMPT='${editor_info[overwrite]}${VIM:+" %B%F{green}V%f%b"}${git_info[rprompt]}'
|
||||||
SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
|
SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue