1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
prezto/themes/rixius.zsh-theme

25 lines
836 B

14 years ago
# /|/ Code by Stephen
# /|/ "Rixius" Middleton
#
14 years ago
# name in folder (github)
# ± if in github repo, or ≥ if otherwise Time in 24-hour format is on right.
14 years ago
function collapse_pwd {
echo $(pwd | sed -e "s,^$HOME,~,")
}
function prompt_char {
14 years ago
echo -n "%{$bg[white]%}%{$fg[red]%}"
git branch >/dev/null 2>/dev/null && echo "±%{$reset_color%}" && return
echo "≥%{$reset_color%}"
14 years ago
}
14 years ago
RIXIUS_PRE="%{$bg[white]%}%{$fg[red]%}"
14 years ago
14 years ago
PROMPT='
%{$RIXIUS_PRE%}%n%{$reset_color%} in %{$fg_bold[green]%}$(collapse_pwd)%{$reset_color%}$GIT_PROMPT_INFO
14 years ago
$(prompt_char) '
14 years ago
RPROMPT='%{$RIXIUS_PRE%}%T%{$reset_color%}'
14 years ago
ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
14 years ago
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$RIXIUS_PRE%}!%{$reset_color%}"
14 years ago
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$RIXIUS_PRE%}√%{$reset_color%}"