Enable compatibility with bash completion scripts by default.

master
Icedream 2019-03-13 09:48:49 +01:00
parent 0f848451f6
commit 1b74774254
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 10 additions and 0 deletions

View File

@ -3,6 +3,7 @@
ZSH_DEBUG="${ZSH_DEBUG:-0}" ZSH_DEBUG="${ZSH_DEBUG:-0}"
ZSH_ALIAS=${ZSH_ALIAS:-1} ZSH_ALIAS=${ZSH_ALIAS:-1}
ZSH_COMPAT_BASH_COMPLETION=${ZSH_COMPAT_BASH_COMPLETION:-1}
ZSH_CUSTOM=${ZSH_CUSTOM:-1} ZSH_CUSTOM=${ZSH_CUSTOM:-1}
ZSH_DEFAULT_TERM=${ZSH_DEFAULT_TERM:-1} ZSH_DEFAULT_TERM=${ZSH_DEFAULT_TERM:-1}
ZSH_GPG_PINENTRY_FIX=${ZSH_GPG_PINENTRY_FIX:-1} ZSH_GPG_PINENTRY_FIX=${ZSH_GPG_PINENTRY_FIX:-1}
@ -45,6 +46,15 @@ log() {
fi fi
} }
# Compatibility mode for completions
section "compat: bash completion"
if [ $ZSH_COMPAT_BASH_COMPLETION -gt 0 ]; then
log "Enabling compatibility for bash completion scripts..."
autoload bashcompinit
bashcompinit
fi
section_end
# Custom variables # Custom variables
section "custom zshrc" section "custom zshrc"
if [ $ZSH_CUSTOM -gt 0 ]; then if [ $ZSH_CUSTOM -gt 0 ]; then