Browse code

add Rixius-Theme

Stephen Middleton authored on 14/01/2011 at 05:52:41
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,16 @@
0
+function collapse_pwd {
1
+    echo $(pwd | sed -e "s,^$HOME,~,")
2
+}
3
+function prompt_char {
4
+    git branch >/dev/null 2>/dev/null && echo "%{$fg[green]%}±%{$reset_color%}" && return
5
+    echo "%{$fg[red]%}≈%{$reset_color%}"
6
+}
7
+
8
+PROMPT='
9
+%{$fg[magenta]%}%n%{$reset_color%} in %{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}$(git_prompt_info)
10
+$(prompt_char) '
11
+
12
+ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
13
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
14
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
15
+ZSH_THEME_GIT_PROMPT_CLEAN=""
0 16
\ No newline at end of file