Browse code

add "fishy" theme to emulate Fish shell's prompt

Suraj N. Kurapati authored on 29/12/2010 at 04:36:29
Showing 1 changed files
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%}"