CHG new prompt, added sqrt to the hostname if root, colour also switches to red

This commit is contained in:
2025-11-16 19:48:37 +01:00
parent 3e127fe60d
commit 5c0d0b03e8

View File

@@ -74,7 +74,7 @@ function git_time_since_commit() {
} }
PROMPT=' PROMPT='
%{$fg[cyan]%}%m%{$reset_color%} 福 %{$fg[cyan]%}%~ %{$reset_color%}$(git_prompt_short_sha)$(git_prompt_info) %(#.$fg[red].$fg[cyan])%(#.√@.)%m%{$reset_color%} 福 %{$fg[cyan]%}%~ %{$reset_color%}$(git_prompt_short_sha)$(git_prompt_info)
%{$fg[red]%}%!%{$reset_color%} $(prompt_char) ' %{$fg[red]%}%!%{$reset_color%} $(prompt_char) %(#.$fg[red].$fg[cyan])%(#.#.⫸)%{$fg[default]%} '
RPROMPT='${return_status}$(git_time_since_commit)$(git_prompt_status)%{$reset_color%}' RPROMPT='${return_status}$(git_time_since_commit)$(git_prompt_status)%{$reset_color%}'