From: Alexander Barton Date: Tue, 5 Feb 2019 19:15:12 +0000 (+0100) Subject: 50_prompt: Implement some common functions as "dummies" X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=deabaefbbaa1b0f62d7fbd78efe70507d87be50f 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. --- 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=""