diff options
author | Roman Kamyk <roman.kamyk@gmail.com> | 2011-09-15 12:56:40 +0200 |
---|---|---|
committer | Roman Kamyk <roman.kamyk@gmail.com> | 2011-09-15 12:56:40 +0200 |
commit | 2b55ee07534ec34a699805dc35ca83ad8e22fc7a (patch) | |
tree | 97f464ca865626aea1aa135e7eb9f629f4017171 /themes/nebirhos.zsh-theme | |
parent | f71647fa85267d558d0d69034902f53aeeed67ad (diff) | |
parent | 762b55bb2bc0452ce3f5f2f21bc22b61936ef704 (diff) | |
download | zsh-2b55ee07534ec34a699805dc35ca83ad8e22fc7a.tar.gz zsh-2b55ee07534ec34a699805dc35ca83ad8e22fc7a.tar.bz2 zsh-2b55ee07534ec34a699805dc35ca83ad8e22fc7a.zip |
Merge branch 'master' of http://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'themes/nebirhos.zsh-theme')
-rw-r--r-- | themes/nebirhos.zsh-theme | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/themes/nebirhos.zsh-theme b/themes/nebirhos.zsh-theme new file mode 100644 index 000000000..c49df972e --- /dev/null +++ b/themes/nebirhos.zsh-theme @@ -0,0 +1,17 @@ +# Based on robbyrussell's theme, with host and rvm indicators. Example: +# @host ➜ currentdir rvm:(rubyversion@gemset) git:(branchname) + +# Get the current ruby version in use with RVM: +if [ -e ~/.rvm/bin/rvm-prompt ]; then + RUBY_PROMPT_="%{$fg_bold[blue]%}rvm:(%{$fg[green]%}\$(~/.rvm/bin/rvm-prompt s i v g)%{$fg_bold[blue]%})%{$reset_color%} " +fi + +# Get the host name (first 4 chars) +HOST_PROMPT_="%{$fg_bold[red]%}@$HOST[0,4] ➜ %{$fg_bold[cyan]%}%c " +GIT_PROMPT="%{$fg_bold[blue]%}\$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}" +PROMPT="$HOST_PROMPT_$RUBY_PROMPT_$GIT_PROMPT" + +ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |