]> arthur.barton.de Git - ax-zsh.git/commitdiff
50_prompt: Implement some common functions as "dummies"
authorAlexander Barton <alex@barton.de>
Tue, 5 Feb 2019 19:15:12 +0000 (20:15 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 5 Feb 2019 19:16:22 +0000 (20:16 +0100)
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

index b28720b73a60ab14e00f5145bce4a7309d4f5e47..5869f060826af3d7e90f400355a1636574014ab0 100644 (file)
@@ -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=""