From 88cd9627cea69a11d18f4ccdd3bae1772d0fac08 Mon Sep 17 00:00:00 2001 From: Username404 Date: Thu, 18 Mar 2021 15:31:37 +0100 Subject: [PATCH] Try to use the /usr/share/zsh/vendor-completions directory when the /etc/zsh_completion.d one is not present for zsh completions. --- scripts/postinst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/postinst b/scripts/postinst index eff944f..0278ef2 100644 --- a/scripts/postinst +++ b/scripts/postinst @@ -20,6 +20,9 @@ fi zshBin="/usr/bin/zsh" if [ -f $zshBin ]; then + if ! [ -d $zshLoc ]; then + zshLoc="/usr/share/zsh/vendor-completions" + fi if [ -d $zshLoc ]; then ln -sf "$ybconDir/completions/zsh-completion.zsh" "$zshLoc/_ybcon" fi