Enable compatibility with bash completion scripts by default.
parent
0f848451f6
commit
1b74774254
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue