6f70d288cc4625142413227109bf1eeac7e2a180
- Author
- zghember <zghpku@gmail.com>
- Committer
- zghember <zghpku@gmail.com>
- Date
Message
Update theme "jispwoso" to support ret status and git
Diff
1diff --git a/themes/jispwoso.zsh-theme b/themes/jispwoso.zsh-theme
2index cdfef387101035f425dea5da436e5985e2eee64d..7484305738ec1142bc56b74ec48712890b16af64 100644
3--- a/themes/jispwoso.zsh-theme
4+++ b/themes/jispwoso.zsh-theme
5@@ -1,4 +1,10 @@
6-PROMPT=$'%{$fg[green]%}%n@%m: %{$reset_color%}%{$fg[blue]%}%/%{$reset_color%}
7-%{$fg_bold[red]%}➜ %{$reset_color%} '
8+local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
9+PROMPT=$'%{$fg[green]%}%n@%m: %{$reset_color%}%{$fg[blue]%}%/ %{$reset_color%}%{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}
10+${ret_status} %{$reset_color%} '
11
12 PROMPT2="%{$fg_blod[black]%}%_> %{$reset_color%}"
13+
14+ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
15+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
16+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
17+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"