1
|
1
|
new file mode 100644
|
...
|
...
|
@@ -0,0 +1,14 @@
|
|
0
|
+if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
|
|
1
|
+local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
|
|
2
|
+
|
|
3
|
+PROMPT='%{$fg[$NCOLOR]%}%n%{$reset_color%}@%{$fg[cyan]%}%m\
|
|
4
|
+%{$reset_color%}:%{$fg[magenta]%}%~\
|
|
5
|
+$(git_prompt_info) \
|
|
6
|
+%{$fg[red]%}%(!.#.»)%{$reset_color%} '
|
|
7
|
+PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
|
8
|
+RPS1='${return_code}'
|
|
9
|
+
|
|
10
|
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}("
|
|
11
|
+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}○%{$reset_color%}"
|
|
12
|
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}⚡%{$reset_color%}"
|
|
13
|
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg[yellow]%})%{$reset_color%}"
|