summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2011-06-03 08:50:31 -0700
committerRobby Russell <robby@planetargon.com>2011-06-03 08:50:31 -0700
commit3ed19c4895cc64d4f51a7f370a93c9d0cee567d2 (patch)
treef4ac88a5328ec3ae44ed78f23c2aeeb4eab1e8bd /themes
parent3ddc49cafd09239e8ab5fd3cfdfb1a2ed73686c3 (diff)
parent1c2eb40e876db3d2bfad22a0b52f0d410e1d51f3 (diff)
downloadzsh-3ed19c4895cc64d4f51a7f370a93c9d0cee567d2.tar.gz
zsh-3ed19c4895cc64d4f51a7f370a93c9d0cee567d2.tar.bz2
zsh-3ed19c4895cc64d4f51a7f370a93c9d0cee567d2.zip
Merge pull request #371 from nebirhos/master
Another (useless) theme!
Diffstat (limited to 'themes')
-rw-r--r--themes/nebirhos.zsh-theme17
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]%})"