]> arthur.barton.de Git - ax-zsh.git/commitdiff
Get rid of "bash_completion" default plugin
authorAlexander Barton <alex@barton.de>
Mon, 22 Mar 2021 20:58:34 +0000 (21:58 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 22 Mar 2021 20:58:34 +0000 (21:58 +0100)
The "bashcompinit" system results in way too many errors, and the
dysfunctional bash completions even shadow working ZSH completion
functions way too often. This makes no sense. Get rid of it!

default_plugins/bash_completion/bash_completion.zshrc [deleted file]

diff --git a/default_plugins/bash_completion/bash_completion.zshrc b/default_plugins/bash_completion/bash_completion.zshrc
deleted file mode 100644 (file)
index dc0e350..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-# 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
-
-for dir (
-       /etc/bash_completion.d
-       /usr/local/etc/bash_completion.d
-); do
-       # Read in all completion functions ...
-       for file ("$dir/"*(N)); do
-               # Ignore errors ...
-               source "$file" 2>/dev/null
-       done
-done
-unset dir