mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-10 04:26:17 +02:00
change the prompt arrow for a star when user is sudoing
This commit is contained in:
parent
4d83da770a
commit
e01882613f
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
|
||||
local prompt_symbol="%(#,★,➜)"
|
||||
local ret_status="%(?:%{$fg_bold[green]%}${prompt_symbol} :%{$fg_bold[red]%}${prompt_symbol} %s)"
|
||||
PROMPT='${ret_status}%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue