summaryrefslogtreecommitdiff
path: root/themes/nebirhos.zsh-theme
diff options
context:
space:
mode:
authorTristan Carel <tcarel@exalead.com>2011-10-10 14:58:28 +0200
committerTristan Carel <tcarel@exalead.com>2011-10-10 14:58:28 +0200
commitdb90589c8a02e98e657af17bb0b460b752d9ed61 (patch)
treed1354a9338bf9921ad0f66d2f5394272e1cfec77 /themes/nebirhos.zsh-theme
parent7066bf7c6b522af9147ebf03c00361c4c6490d42 (diff)
parent57f04b921ea1c12a0a283331778848cd4011bf21 (diff)
downloadzsh-db90589c8a02e98e657af17bb0b460b752d9ed61.tar.gz
zsh-db90589c8a02e98e657af17bb0b460b752d9ed61.tar.bz2
zsh-db90589c8a02e98e657af17bb0b460b752d9ed61.zip
Merge remote-tracking branch 'upstream/master' into emacs
Conflicts: plugins/emacs/emacs.plugin.zsh plugins/emacs/emacsclient.sh
Diffstat (limited to 'themes/nebirhos.zsh-theme')
-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]%})"