mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
Allow override of zsh prompt prefix
Can be set with `ZSH_THEME_PROMPT_SYMBOL`. Defaults to `➜`
This commit is contained in:
parent
d848c94804
commit
29dc356a30
1 changed files with 3 additions and 1 deletions
|
|
@ -1,4 +1,6 @@
|
|||
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
|
||||
PROMPT_SYMBOL=${ZSH_THEME_PROMPT_SYMBOL:-➜}
|
||||
|
||||
local ret_status="%(?:%{$fg_bold[green]%}${PROMPT_SYMBOL} :%{$fg_bold[red]%}${PROMPT_SYMBOL} )"
|
||||
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue