8ca019f02a4dc718fe5fc8b1186108eb376360c9

Author
Suvash Thapaliya <suvash@gmail.com>
Committer
Suvash Thapaliya <suvash@gmail.com>
Date

Message

Added my own theme file : suvash

Since I store my dotfiles on github
and plan to submodule oh-my-zsh
i supposed it was a good idea to
submit my theme as well.

Diff

 1diff --git a/themes/suvash.zsh-theme b/themes/suvash.zsh-theme
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..f50657db2c909def178fa5762def0f9ab613157d
 4--- /dev/null
 5+++ b/themes/suvash.zsh-theme
 6@@ -0,0 +1,23 @@
 7+function prompt_char {
 8+    git branch >/dev/null 2>/dev/null && echo '±' && return
 9+    hg root >/dev/null 2>/dev/null && echo 'Hg' && return
10+    echo '○'
11+}
12+
13+function virtualenv_info {
14+    [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
15+}
16+
17+function collapse_pwd {
18+    echo $(pwd | sed -e "s,^$HOME,~,")
19+}
20+
21+PROMPT='%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) using %{$reset_color%}%{$fg[red]%}$(~/.rvm/bin/rvm-prompt)%{$reset_color%} 
22+$(virtualenv_info)$(prompt_char) '
23+
24+
25+ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
26+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
27+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
28+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
29+ZSH_THEME_GIT_PROMPT_CLEAN=""