2 # /|/ "Rixius" Middleton
4 # name in folder (github)
5 # ± if in github repo, or ≥ if otherwise Time in 24-hour format is on right.
6 function collapse_pwd {
7 echo $(pwd | sed -e "s,^$HOME,~,")
10 echo -n "%{$bg[white]%}%{$fg[red]%}"
11 git branch >/dev/null 2>/dev/null && echo "±%{$reset_color%}" && return
12 echo "≥%{$reset_color%}"
14 RIXIUS_PRE="%{$bg[white]%}%{$fg[red]%}"
17 %{$RIXIUS_PRE%}%n%{$reset_color%} in %{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}$(git_prompt_info)
19 RPROMPT='%{$RIXIUS_PRE%}%T%{$reset_color%}'
21 ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
22 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
23 ZSH_THEME_GIT_PROMPT_DIRTY=" %{$RIXIUS_PRE%}!%{$reset_color%}"
24 ZSH_THEME_GIT_PROMPT_CLEAN=" %{$RIXIUS_PRE%}√%{$reset_color%}"