From c31efb640c4a34548910297c49c0ed1bfed3a810 Mon Sep 17 00:00:00 2001 From: chenyc Date: Wed, 29 Oct 2025 10:55:11 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BF=AE=E6=94=B9prompt=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E5=A6=82=E6=9E=9C=E5=BD=93=E5=89=8D=E5=9C=A8?= =?UTF-8?q?ssh=EF=BC=8C=E6=98=BE=E7=A4=BAssh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/simple.zsh-theme | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/themes/simple.zsh-theme b/themes/simple.zsh-theme index 1f9e3c4..8ff24b9 100644 --- a/themes/simple.zsh-theme +++ b/themes/simple.zsh-theme @@ -1,4 +1,10 @@ -PROMPT="%{$fg[yellow]%}$PCNAME%(!.%{$fg[green]%}.%{$fg[green]%})%~%{$fg_bold[yellow]%}"'$(git_prompt_info)%{$reset_color%} ' +if [[ -z "$(echo $SSH_CLIENT)" ]]; then + PCNAME= +else + PCNAME='@SSH ' +fi + +PROMPT="%{$fg[blue]%}$PCNAME%(!.%{$fg[green]%}.%{$fg[green]%})%~%{$fg_bold[yellow]%}"'$(git_prompt_info)%{$reset_color%} ' ZSH_THEME_GIT_PROMPT_PREFIX="[" ZSH_THEME_GIT_PROMPT_SUFFIX="]"