Skip to content

Commit ecc1570

Browse files
committed
distrobox: add missing zsh completions
1 parent 7477912 commit ecc1570

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

apps/distrobox@any

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,25 @@ declare -a _DISTROBOX_BINS=(
1818
distrobox-upgrade
1919
)
2020

21+
declare -a _DISTROBOX_ZSH_COMPLETIONS=(
22+
_distrobox
23+
_distrobox-assemble
24+
_distrobox-create
25+
_distrobox-enter
26+
_distrobox-ephemeral
27+
_distrobox-export
28+
_distrobox-generate-entry
29+
_distrobox-host-exec
30+
_distrobox-init
31+
_distrobox-list
32+
_distrobox-rm
33+
_distrobox-stop
34+
_distrobox-upgrade
35+
_distrobox_containers
36+
_distrobox_images
37+
_distrobox_running_containers
38+
)
39+
2140
declare -a _DISTROBOX_MANS=(
2241
distrobox.1
2342
distrobox-assemble.1
@@ -65,9 +84,9 @@ app_install() {
6584
done
6685

6786
# Install zsh completions
68-
for bin in "${_DISTROBOX_BINS[@]}"; do
69-
[ -f "completions/zsh/_$bin" ] || continue
70-
install -vD -m644 "completions/zsh/_$bin" "$SDD_ZSH_COMPLETION_DIR/_$bin" >&2
87+
for comp in "${_DISTROBOX_ZSH_COMPLETIONS[@]}"; do
88+
[ -f "completions/zsh/$comp" ] || continue
89+
install -vD -m644 "completions/zsh/$comp" "$SDD_ZSH_COMPLETION_DIR/$comp" >&2
7190
done
7291

7392
# Install man pages

0 commit comments

Comments
 (0)