diff --git a/home/dotfiles/zshrc b/home/dotfiles/zshrc index 62a42be..b9a8760 100644 --- a/home/dotfiles/zshrc +++ b/home/dotfiles/zshrc @@ -3,6 +3,7 @@ ZSH_DEBUG="${ZSH_DEBUG:-0}" ZSH_ALIAS=${ZSH_ALIAS:-1} +ZSH_COMPAT_BASH_COMPLETION=${ZSH_COMPAT_BASH_COMPLETION:-1} ZSH_CUSTOM=${ZSH_CUSTOM:-1} ZSH_DEFAULT_TERM=${ZSH_DEFAULT_TERM:-1} ZSH_GPG_PINENTRY_FIX=${ZSH_GPG_PINENTRY_FIX:-1} @@ -45,6 +46,15 @@ log() { 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 section "custom zshrc" if [ $ZSH_CUSTOM -gt 0 ]; then