]> arthur.barton.de Git - ax-zsh.git/commitdiff
40_completion: Call "compinit -u" when "ZSH_DISABLE_COMPFIX" is set
authorAlexander Barton <alex@barton.de>
Wed, 24 May 2023 10:06:28 +0000 (12:06 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 24 May 2023 10:06:48 +0000 (12:06 +0200)
This disables the check for "insecure directories" of the "compinit"
function.

core/40_completion/40_completion.zshrc

index 14dd03a095a8394e1d18196fc480d94083f06f24..c7a6a7739c179f59382e2a378f6ac9ecad5670f7 100644 (file)
@@ -65,4 +65,8 @@ fpath+=("$AXZSH/active_plugins/"*/completions(N))
 fpath+=("$AXZSH/active_plugins/"*/src(N))
 
 # Initialize ZSH completion system
-compinit -d "$ZSH_COMPDUMP"
+if [[ "$ZSH_DISABLE_COMPFIX" = "true" ]]; then
+       compinit -u -d "$ZSH_COMPDUMP"
+else
+       compinit -d "$ZSH_COMPDUMP"
+fi