diff options
author | Suraj N. Kurapati <sunaku@gmail.com> | 2010-12-28 20:36:29 -0800 |
---|---|---|
committer | Suraj N. Kurapati <sunaku@gmail.com> | 2010-12-28 20:36:29 -0800 |
commit | 943e09cd84baff55d36ebcfcf05b9fbfb4436a17 (patch) | |
tree | dafd691debb3280864d085f3917e00f2b3fc1075 /themes | |
parent | 4fadc302472f9b02e386da3e7182c1397ee3cd5c (diff) | |
download | zsh-943e09cd84baff55d36ebcfcf05b9fbfb4436a17.tar.gz zsh-943e09cd84baff55d36ebcfcf05b9fbfb4436a17.tar.bz2 zsh-943e09cd84baff55d36ebcfcf05b9fbfb4436a17.zip |
add "fishy" theme to emulate Fish shell's prompt
Diffstat (limited to 'themes')
-rw-r--r-- | themes/fishy.zsh-theme | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/themes/fishy.zsh-theme b/themes/fishy.zsh-theme new file mode 100644 index 000000000..f22eda868 --- /dev/null +++ b/themes/fishy.zsh-theme @@ -0,0 +1,9 @@ +# ZSH Theme emulating the Fish shell's default prompt. + +local user_color='green'; [ $UID -eq 0 ] && user_color='red' +PROMPT='%n@%m %{$fg[$user_color]%}%~%{$reset_color%}%(!.#.>) ' +PROMPT2='%{$fg[red]%}\ %{$reset_color%}' +RPS1='%(?..%{$fg[red]%}%? ↵%{$reset_color%})$(git_prompt_info)' + +ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" |