943e09cd84baff55d36ebcfcf05b9fbfb4436a17

Author
Suraj N. Kurapati <sunaku@gmail.com>
Committer
Suraj N. Kurapati <sunaku@gmail.com>
Date

Message

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

Diff

 1diff --git a/themes/fishy.zsh-theme b/themes/fishy.zsh-theme
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..f22eda868501accc1aed45380a70d634eb8d0435
 4--- /dev/null
 5+++ b/themes/fishy.zsh-theme
 6@@ -0,0 +1,9 @@
 7+# ZSH Theme emulating the Fish shell's default prompt.
 8+
 9+local user_color='green'; [ $UID -eq 0 ] && user_color='red'
10+PROMPT='%n@%m %{$fg[$user_color]%}%~%{$reset_color%}%(!.#.>) '
11+PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
12+RPS1='%(?..%{$fg[red]%}%? ↵%{$reset_color%})$(git_prompt_info)'
13+
14+ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}"
15+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"