diff options
author | NanoTech <nanotech008@gmail.com> | 2011-02-05 23:51:05 -0600 |
---|---|---|
committer | NanoTech <nanotech008@gmail.com> | 2011-02-05 23:51:05 -0600 |
commit | 143dd165e973a3559fbc1b085f1ff05e263f85b0 (patch) | |
tree | 25aa67cf40f468d658ec6f37657e8efa3c128ef8 /themes/rixius.zsh-theme | |
parent | 2a203b558fd6328c9a91e9dbbf145d91e7ba7ed1 (diff) | |
parent | 01b0366f3e27cf30f3882870100f14625fc267d1 (diff) | |
download | zsh-143dd165e973a3559fbc1b085f1ff05e263f85b0.tar.gz zsh-143dd165e973a3559fbc1b085f1ff05e263f85b0.tar.bz2 zsh-143dd165e973a3559fbc1b085f1ff05e263f85b0.zip |
Merge branch 'master' of git://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'themes/rixius.zsh-theme')
-rw-r--r-- | themes/rixius.zsh-theme | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/themes/rixius.zsh-theme b/themes/rixius.zsh-theme new file mode 100644 index 000000000..c0c5c9c71 --- /dev/null +++ b/themes/rixius.zsh-theme @@ -0,0 +1,24 @@ +# /|/ Code by Stephen +# /|/ "Rixius" Middleton +# +# name in folder (github) +# ± if in github repo, or ≥ if otherwise Time in 24-hour format is on right. +function collapse_pwd { + echo $(pwd | sed -e "s,^$HOME,~,") +} +function prompt_char { + echo -n "%{$bg[white]%}%{$fg[red]%}" + git branch >/dev/null 2>/dev/null && echo "±%{$reset_color%}" && return + echo "≥%{$reset_color%}" +} +RIXIUS_PRE="%{$bg[white]%}%{$fg[red]%}" + +PROMPT=' +%{$RIXIUS_PRE%}%n%{$reset_color%} in %{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}$(git_prompt_info) +$(prompt_char) ' +RPROMPT='%{$RIXIUS_PRE%}%T%{$reset_color%}' + +ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DIRTY=" %{$RIXIUS_PRE%}!%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_CLEAN=" %{$RIXIUS_PRE%}√%{$reset_color%}" |