From d6c93b3ec06b81a363d035e54922c106a7bb4e7e Mon Sep 17 00:00:00 2001 From: Guillermo Caracuel Date: Mon, 6 Jun 2016 14:56:30 +0200 Subject: [PATCH] Bureau Theme: Adding a flag to disable NVM prompt --- themes/bureau.zsh-theme | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/themes/bureau.zsh-theme b/themes/bureau.zsh-theme index 84fdff40..f8631c40 100644 --- a/themes/bureau.zsh-theme +++ b/themes/bureau.zsh-theme @@ -90,6 +90,11 @@ bureau_git_prompt () { echo $_result } +bureau_nvm_prompt() { + [[ $BUREAU_THEME_NVM_SHOW == false ]] && return + echo -n "$(nvm_prompt_info)" +} + bureau_venv_prompt() { [[ $BUREAU_THEME_VENV_SHOW == false ]] && return @@ -155,7 +160,7 @@ bureau_precmd () { setopt prompt_subst PROMPT='> $_LIBERTY ' -RPROMPT='$(nvm_prompt_info)$(bureau_venv_prompt)$(bureau_ruby_prompt)$(bureau_git_prompt)' +RPROMPT='$(bureau_nvm_prompt)$(bureau_venv_prompt)$(bureau_ruby_prompt)$(bureau_git_prompt)' autoload -U add-zsh-hook