1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,9 @@ |
0 |
+# ZSH Theme emulating the Fish shell's default prompt. |
|
1 |
+ |
|
2 |
+local user_color='green'; [ $UID -eq 0 ] && user_color='red' |
|
3 |
+PROMPT='%n@%m %{$fg[$user_color]%}%~%{$reset_color%}%(!.#.>) ' |
|
4 |
+PROMPT2='%{$fg[red]%}\ %{$reset_color%}' |
|
5 |
+RPS1='%(?..%{$fg[red]%}%? ↵%{$reset_color%})$(git_prompt_info)' |
|
6 |
+ |
|
7 |
+ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}" |
|
8 |
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" |