1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,20 @@ |
0 |
+# https://github.com/blinks zsh theme |
|
1 |
+ |
|
2 |
+function _prompt_char() { |
|
3 |
+ if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then |
|
4 |
+ echo "%{%F{blue}%}±%{%f%k%b%}" |
|
5 |
+ else |
|
6 |
+ echo ' ' |
|
7 |
+ fi |
|
8 |
+} |
|
9 |
+ |
|
10 |
+ZSH_THEME_GIT_PROMPT_PREFIX=" [%{%B%F{blue}%}" |
|
11 |
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{%f%k%b%K{black}%B%F{green}%}]" |
|
12 |
+ZSH_THEME_GIT_PROMPT_DIRTY=" %{%F{red}%}*%{%f%k%b%}" |
|
13 |
+ZSH_THEME_GIT_PROMPT_CLEAN="" |
|
14 |
+ |
|
15 |
+PROMPT='%{%f%k%b%} |
|
16 |
+%{%K{black}%B%F{green}%}%n%{%B%F{blue}%}@%{%B%F{cyan}%}%m%{%B%F{green}%} %{%b%F{yellow}%K{black}%}%~%{%B%F{green}%}$(git_prompt_info)%E%{%f%k%b%} |
|
17 |
+%{%K{black}%}$(_prompt_char)%{%K{black}%} %#%{%f%k%b%} ' |
|
18 |
+ |
|
19 |
+RPROMPT='!%{%B%F{cyan}%}%!%{%f%k%b%}' |