From a3cd7644671a257292d8c8473eef5de3cacaaa36 Mon Sep 17 00:00:00 2001 From: goodhumored Date: Tue, 20 May 2025 11:58:01 +0300 Subject: [PATCH] feat: amuse zsh ssh hostname --- .oh-my-zsh/themes/amuse.zsh-theme | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.oh-my-zsh/themes/amuse.zsh-theme b/.oh-my-zsh/themes/amuse.zsh-theme index bd69522..e3612c4 100644 --- a/.oh-my-zsh/themes/amuse.zsh-theme +++ b/.oh-my-zsh/themes/amuse.zsh-theme @@ -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 -