mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
add git stash indicator into git prompt
This commit is contained in:
parent
757fa3314d
commit
c26323abd4
2 changed files with 12 additions and 1 deletions
|
|
@ -30,6 +30,8 @@ ZSH_THEME_GIT_PROMPT_PREFIX="git:(" # Prefix at the very beginning of th
|
|||
ZSH_THEME_GIT_PROMPT_SUFFIX=")" # At the very end of the prompt
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="*" # Text to display if the branch is dirty
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN="" # Text to display if the branch is clean
|
||||
ZSH_THEME_GIT_PROMPT_STASH="#" # Text to display if stash exists
|
||||
ZSH_THEME_GIT_PROMPT_NOSTASH="" # Text to display if no stash exists
|
||||
|
||||
# Setup the prompt with pretty colors
|
||||
setopt prompt_subst
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue