change the prompt arrow for a star when user is sudoing

This commit is contained in:
Felds Liscia 2016-01-23 01:13:14 -02:00
commit e01882613f

View file

@ -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]%}"