Browse Source

system/trash-cli: Fix installation of shell completions

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/304/head
Isaac Yu 4 months ago
committed by Willy Sudiarto Raharjo
parent
commit
1f2b26feea
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 4
      system/trash-cli/trash-cli.SlackBuild

4
system/trash-cli/trash-cli.SlackBuild

@ -76,8 +76,8 @@ if $(python3 -c 'import pkgutil; exit(not pkgutil.find_loader("shtab"))'); then
mkdir -p $PKG/usr/share/bash-completion/completions
mkdir -p $PKG/usr/share/zsh/site-functions
for CMD in trash-empty trash-list trash-restore trash-put trash; do
$CMD --print-completion bash > "$PKG/usr/share/bash-completion/completions/$CMD"
$CMD --print-completion zsh > "$PKG/usr/share/zsh/site-functions/_$CMD"
./$CMD --print-completion bash > "$PKG/usr/share/bash-completion/completions/$CMD"
./$CMD --print-completion zsh > "$PKG/usr/share/zsh/site-functions/_$CMD"
done
fi

Loading…
Cancel
Save