76d99055840a85ab4da139c1286ae7c805b88087

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge branch 'master' of https://github.com/Rixius/oh-my-zsh into Rixius-master

Diff

 1diff --git a/themes/rixius.zsh-theme b/themes/rixius.zsh-theme
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..c0c5c9c718ad77d52876c8438903ad40069f24a9
 4--- /dev/null
 5+++ b/themes/rixius.zsh-theme
 6@@ -0,0 +1,24 @@
 7+# /|/ Code by Stephen
 8+# /|/ "Rixius" Middleton
 9+# 
10+# name in folder (github)
11+# ± if in github repo, or ≥ if otherwise Time in 24-hour format is on right.
12+function collapse_pwd {
13+    echo $(pwd | sed -e "s,^$HOME,~,")
14+}
15+function prompt_char {
16+    echo -n "%{$bg[white]%}%{$fg[red]%}"
17+    git branch >/dev/null 2>/dev/null && echo "±%{$reset_color%}" && return
18+    echo "≥%{$reset_color%}"
19+}
20+RIXIUS_PRE="%{$bg[white]%}%{$fg[red]%}"
21+
22+PROMPT='
23+%{$RIXIUS_PRE%}%n%{$reset_color%} in %{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}$(git_prompt_info)
24+$(prompt_char) '
25+RPROMPT='%{$RIXIUS_PRE%}%T%{$reset_color%}'
26+
27+ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
28+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
29+ZSH_THEME_GIT_PROMPT_DIRTY=" %{$RIXIUS_PRE%}!%{$reset_color%}"
30+ZSH_THEME_GIT_PROMPT_CLEAN=" %{$RIXIUS_PRE%}√%{$reset_color%}"