Browse Source

lib: load bash completion functions automatically

Fixes #8614
Marc Cornellà 5 years ago
parent
commit
17428f3c9a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/completion.zsh

+ 3 - 0
lib/completion.zsh

@@ -71,3 +71,6 @@ if [[ $COMPLETION_WAITING_DOTS = true ]]; then
   zle -N expand-or-complete-with-dots
   zle -N expand-or-complete-with-dots
   bindkey "^I" expand-or-complete-with-dots
   bindkey "^I" expand-or-complete-with-dots
 fi
 fi
+
+# automatically load bash completion functions
+autoload -Uz bashcompinit && bashcompinit