CHG new prompt, added sqrt to the hostname if root, colour also switches to red
This commit is contained in:
@@ -74,7 +74,7 @@ function git_time_since_commit() {
|
||||
}
|
||||
|
||||
PROMPT='
|
||||
%{$fg[cyan]%}%m%{$reset_color%} 福 %{$fg[cyan]%}%~ %{$reset_color%}$(git_prompt_short_sha)$(git_prompt_info)
|
||||
%{$fg[red]%}%!%{$reset_color%} $(prompt_char) ❯ '
|
||||
%(#.$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].$fg[cyan])%(#.#.⫸)%{$fg[default]%} '
|
||||
|
||||
RPROMPT='${return_status}$(git_time_since_commit)$(git_prompt_status)%{$reset_color%}'
|
||||
|
||||
Reference in New Issue
Block a user