3ed19c4895cc64d4f51a7f370a93c9d0cee567d2

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #371 from nebirhos/master

Another (useless) theme!

Diff

 1diff --git a/themes/nebirhos.zsh-theme b/themes/nebirhos.zsh-theme
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..c49df972eb6af42a2de689a7d3cc42d648e02443
 4--- /dev/null
 5+++ b/themes/nebirhos.zsh-theme
 6@@ -0,0 +1,17 @@
 7+# Based on robbyrussell's theme, with host and rvm indicators. Example:
 8+# @host ➜ currentdir rvm:(rubyversion@gemset) git:(branchname)
 9+
10+# Get the current ruby version in use with RVM:
11+if [ -e ~/.rvm/bin/rvm-prompt ]; then
12+    RUBY_PROMPT_="%{$fg_bold[blue]%}rvm:(%{$fg[green]%}\$(~/.rvm/bin/rvm-prompt s i v g)%{$fg_bold[blue]%})%{$reset_color%} "
13+fi
14+
15+# Get the host name (first 4 chars)
16+HOST_PROMPT_="%{$fg_bold[red]%}@$HOST[0,4] ➜  %{$fg_bold[cyan]%}%c "
17+GIT_PROMPT="%{$fg_bold[blue]%}\$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}"
18+PROMPT="$HOST_PROMPT_$RUBY_PROMPT_$GIT_PROMPT"
19+
20+ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
21+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
22+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
23+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"