]> arthur.barton.de Git - ax-zsh.git/blob - default_plugins/bash_completion/bash_completion.zshrc
Add new "bash_completion" plugin
[ax-zsh.git] / default_plugins / bash_completion / bash_completion.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # bash_completion.zshrc: Setup bash(1) completion
3
4 autoload -Uz bashcompinit || return 1
5 bashcompinit
6
7 for dir (
8         /etc/bash_completion.d
9         /usr/local/etc/bash_completion.d
10 ); do
11         # Read in all completion functions ...
12         for file ("$dir/"*(N)); do
13                 # Ignore errors ...
14                 source "$file" 2>/dev/null
15         done
16 done
17 unset dir