From d657082aebb0a1934524d27623a4799e28c74559 Mon Sep 17 00:00:00 2001 From: steveokard Date: Mon, 7 Aug 2017 15:34:05 -0400 Subject: [PATCH] Fixed Bureau theme to include a vim status indicator --- .oh-my-zsh/themes/bureau.zsh-theme | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.oh-my-zsh/themes/bureau.zsh-theme b/.oh-my-zsh/themes/bureau.zsh-theme index 3b3bdc8..5c11a78 100644 --- a/.oh-my-zsh/themes/bureau.zsh-theme +++ b/.oh-my-zsh/themes/bureau.zsh-theme @@ -115,9 +115,16 @@ bureau_precmd () { print -rP "$_1LEFT$_1SPACES$_1RIGHT" } +function _vi_status() { + if {echo $fpath | grep -q "plugins/vi-mode"}; then + echo "$(vi_mode_prompt_info)" + fi +} +MODE_INDICATOR="%{$fg_bold[yellow]%}❮%{$reset_color%}%{$fg[yellow]%}❮❮%{$reset_color%}" + setopt prompt_subst PROMPT='> $_LIBERTY ' -RPROMPT='$(nvm_prompt_info) $(bureau_git_prompt)' +RPROMPT='$(_vi_status) $(nvm_prompt_info) $(bureau_git_prompt)' autoload -U add-zsh-hook add-zsh-hook precmd bureau_precmd