From deabaefbbaa1b0f62d7fbd78efe70507d87be50f Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 5 Feb 2019 20:15:12 +0100 Subject: [PATCH] 50_prompt: Implement some common functions as "dummies" So now plugins and themes depending on those functions -- without testing for them -- won't error our and/or issue lots of warning/error messages. Later on the actual ax-zsh plugins will override those dummies, when enabled. See the "git" plugin, for example. --- core/50_prompt/50_prompt.zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/50_prompt/50_prompt.zshrc b/core/50_prompt/50_prompt.zshrc index b28720b..5869f06 100644 --- a/core/50_prompt/50_prompt.zshrc +++ b/core/50_prompt/50_prompt.zshrc @@ -1,6 +1,11 @@ # AX-ZSH: Alex' Modular ZSH Configuration # 50_prompt.zshrc: Setup default prompts +# Some dummy functions (used by some OhMyZsh themes, for example) ... +git_prompt_info(){ true; } +git_prompt_status(){ true; } +rvm_prompt_info(){ true; } + # Logname ("user name") ZSH_THEME_LOGNAME_PROMPT_PREFIX_SPACING="" -- 2.39.2