feat: amuse zsh ssh hostname

This commit is contained in:
parent 076e8396e9
commit a3cd764467

View File

@ -25,11 +25,11 @@ function precmd() {
ssh=""
if [[ -n $SSH_CONNECTION ]]; then
ssh="🌐"
ssh="🌐 $(hostname) "
fi
PROMPT='
%{$ssh%} %{$fg_bold[green]%}%~%{$reset_color%}$(git_prompt_info)$(virtualenv_prompt_info) ⌚ %{$fg_bold[red]%}%*%{$reset_color%}
%{$ssh%}%{$fg_bold[green]%}%~%{$reset_color%}$(git_prompt_info)$(virtualenv_prompt_info) ⌚ %{$fg_bold[red]%}%*%{$reset_color%}
$ '
# RPROMPT='$(ruby_prompt_info)'
@ -39,4 +39,3 @@ ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX=" %{$fg[green]%}🐍 "
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_VIRTUALENV_PREFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX
ZSH_THEME_VIRTUALENV_SUFFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX