diff --git a/shell/zsh/themes/plain/plain.zsh-theme b/shell/zsh/themes/plain/plain.zsh-theme deleted file mode 100644 index 6af001e..0000000 --- a/shell/zsh/themes/plain/plain.zsh-theme +++ /dev/null @@ -1,23 +0,0 @@ -PROMPT='%n@%m %~$(check_git_prompt_info)$ %{$reset_color%}' - -local return_code="%(?..%{$fg[cyan]%}%? ↵%{$reset_color%})" -RPROMPT="${return_code}" - -ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}(" -ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" -ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$fg[cyan]%})%{$reset_color%}" -ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[cyan]%})%{$fg[blue]%}" - - -# Git sometimes goes into a detached head state. git_prompt_info doesn't -# return anything in this case. So wrap it in another function and check -# for an empty string. -- Brorrowed from Soliah.zsh-theme :) -function check_git_prompt_info() { - if git rev-parse --git-dir > /dev/null 2>&1; then - if [[ -z $(git_prompt_info) ]]; then - echo "%{$fg[cyan]%}(detached%{$fg[magenta]%}*%{$fg[cyan]%})%{$reset_color%}" - else - echo "$(git_prompt_info)" - fi - fi -} diff --git a/shell/zshrc.zsh b/shell/zshrc.zsh index 83baf37..2c117e3 100644 --- a/shell/zshrc.zsh +++ b/shell/zshrc.zsh @@ -32,7 +32,7 @@ zplug "zsh-users/zsh-autosuggestions" zplug "zsh-users/zsh-syntax-highlighting", defer:3 # zplug "aaronjamesyoung/aaron-zsh-theme", as:theme -zplug "$DOTZSH/themes/plain", from:local, as:theme +zplug "jimeh/plain.zsh-theme", as:theme # Install plugins if there are plugins that have not been installed if ! zplug check --verbose; then