]> arthur.barton.de Git - ax-zsh.git/commitdiff
bash_completion: Define dummy function to suppress errors
authorAlexander Barton <alex@barton.de>
Sat, 2 Nov 2019 20:53:30 +0000 (21:53 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 2 Nov 2019 20:53:30 +0000 (21:53 +0100)
Define a dummy _init_completion() function, which some bash-completion
scripts do call (for example fail2ban-client ...): this doesn't make the
completion usable, but suppresses error messages at least ...

default_plugins/bash_completion/bash_completion.zshrc

index 1618dfcbe24391872e7a4ddea939ffb72dd2048a..dc0e35021fc95789ead7e3b2766ec691797267e9 100644 (file)
@@ -1,6 +1,9 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # bash_completion.zshrc: Setup bash(1) completion
 
+# Define some "dummy functions"
+_init_completion() { return 0 }
+
 autoload -Uz bashcompinit || return 1
 bashcompinit