diff --git a/themes/zephyr.zsh-theme b/themes/zephyr.zsh-theme index 100f85487..2addfb7f5 100644 --- a/themes/zephyr.zsh-theme +++ b/themes/zephyr.zsh-theme @@ -1,14 +1,13 @@ -# /|/ Code by Stephen -# /|/ "Rixius" Middleton +# /|/ Code by Andrew Davies: "Zephyr" # -# name in folder (github) -# ± if in github repo, or ≥ if otherwise Time in 24-hour format is on right. +# name in folder (github). github branch shown when in git directory, also shows `*` +# to indicate dirty repo. function collapse_pwd { echo $(pwd | sed -e "s,^$HOME,~,") } -RIXIUS_PRE="%{$fg[white]%}" +ZEPHYR_PRE="%{$fg[white]%}" function prompt_char { - echo -n "%{$RIXIUS_PRE%}" + echo -n "%{$ZEPHYR_PRE%}" git branch >/dev/null 2>/dev/null && echo "╘╡%{$reset_color%}" && return echo "└╼%{$reset_color%}" } @@ -21,11 +20,11 @@ function open_git { } PROMPT=' -%{$RIXIUS_PRE%}┌┤%m├─┤%{$reset_color%}%{$fg[blue]%}$(collapse_pwd)%{$RIXIUS_PRE%}$(open_git)%{$reset_color%}$(git_prompt_info)%{$RIXIUS_PRE%}$(close_git)%{$reset_color%} +%{$ZEPHYR_PRE%}┌┤%m├─┤%{$reset_color%}%{$fg[blue]%}$(collapse_pwd)%{$ZEPHYR_PRE%}$(open_git)%{$reset_color%}$(git_prompt_info)%{$ZEPHYR_PRE%}$(close_git)%{$reset_color%} $(prompt_char) ' -RPROMPT='%{$RIXIUS_PRE%}%T%{$reset_color%}' +RPROMPT='%{$ZEPHYR_PRE%}%T%{$reset_color%}' ZSH_THEME_GIT_PROMPT_PREFIX="%{$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%}" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$ZEPHYR_PRE%}*%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_CLEAN="%{$ZEPHYR_PRE%}%{$reset_color%}"