Browse code

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.

Suvash Thapaliya authored on 12/12/2011 at 22:55:07
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,23 @@
0
+function prompt_char {
1
+    git branch >/dev/null 2>/dev/null && echo '±' && return
2
+    hg root >/dev/null 2>/dev/null && echo 'Hg' && return
3
+    echo '○'
4
+}
5
+
6
+function virtualenv_info {
7
+    [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
8
+}
9
+
10
+function collapse_pwd {
11
+    echo $(pwd | sed -e "s,^$HOME,~,")
12
+}
13
+
14
+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%} 
15
+$(virtualenv_info)$(prompt_char) '
16
+
17
+
18
+ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
19
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
20
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
21
+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
22
+ZSH_THEME_GIT_PROMPT_CLEAN=""