diff options
author | Robby Russell <robby@planetargon.com> | 2011-07-23 09:25:30 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2011-07-23 09:25:30 -0700 |
commit | 92467e0b90d2c1d728ed7eadf9bc884918cacdf1 (patch) | |
tree | 6252bd23ce58af58352bb487cdbc816b61ee6b5c | |
parent | dd6cc96bb1db382d824eb6dfa512d0526b6adac0 (diff) | |
parent | 06472515e137df32ad2f898962a3ca05c24ad8d0 (diff) | |
download | zsh-92467e0b90d2c1d728ed7eadf9bc884918cacdf1.tar.gz zsh-92467e0b90d2c1d728ed7eadf9bc884918cacdf1.tar.bz2 zsh-92467e0b90d2c1d728ed7eadf9bc884918cacdf1.zip |
Merge pull request #167 from jarinudom/master
Add superjarin theme that shows current ruby version via RVM
-rw-r--r-- | themes/superjarin.zsh-theme | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/themes/superjarin.zsh-theme b/themes/superjarin.zsh-theme new file mode 100644 index 000000000..16eeb5316 --- /dev/null +++ b/themes/superjarin.zsh-theme @@ -0,0 +1,18 @@ +# Grab the current version of ruby in use (via RVM): [ruby-1.8.7] +JARIN_CURRENT_RUBY_="%{$fg[white]%}[%{$fg[red]%}\$(~/.rvm/bin/rvm-prompt i v)%{$fg[white]%}]%{$reset_color%}" + +# Grab the current filepath, use shortcuts: ~/Desktop +# Append the current git branch, if in a git repository +JARIN_CURRENT_LOCA_="%{$fg_bold[cyan]%}%~\$(git_prompt_info)%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%} <%{$fg[magenta]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" + +# Do nothing if the branch is clean (no changes). +ZSH_THEME_GIT_PROMPT_CLEAN="%{$reset_color%}>" + +# Add a yellow ✗ if the branch is dirty +ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}> %{$fg[yellow]%}✗" + +# Put it all together! +PROMPT="$JARIN_CURRENT_RUBY_ $JARIN_CURRENT_LOCA_ " + |