Try to use the /usr/share/zsh/vendor-completions directory when the /etc/zsh_completion.d one is not present for zsh completions.

This commit is contained in:
Username404 2021-03-18 15:31:37 +01:00
parent 68fe01be97
commit 88cd9627ce
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ fi
zshBin="/usr/bin/zsh" zshBin="/usr/bin/zsh"
if [ -f $zshBin ]; then if [ -f $zshBin ]; then
if ! [ -d $zshLoc ]; then
zshLoc="/usr/share/zsh/vendor-completions"
fi
if [ -d $zshLoc ]; then if [ -d $zshLoc ]; then
ln -sf "$ybconDir/completions/zsh-completion.zsh" "$zshLoc/_ybcon" ln -sf "$ybconDir/completions/zsh-completion.zsh" "$zshLoc/_ybcon"
fi fi