Browse code

added the dstufft theme (based on prose by sjl)

dstufft authored on 24/03/2010 at 00:51:57
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,19 @@
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
+PROMPT='
11
+%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%} in %{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info)
12
+$(virtualenv_info)$(prompt_char) '
13
+
14
+ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
15
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
16
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
17
+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
18
+ZSH_THEME_GIT_PROMPT_CLEAN=""