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
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with
2 additions and
2 deletions
-
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 |
|
|
|
|
|
|
|
|