Skip to content

Commit 6925fbd

Browse files
committed
feat(apt-get): add reinstall and --error-on support
1 parent a1b18e5 commit 6925fbd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

completions/apt-get

+7-7
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ _apt_get()
3636
$(compgen -W "$(apt-cache dumpavail |
3737
awk '$1 == "Source:" { print $2 }' | sort -u)" -- "$cur"))
3838
;;
39-
install)
39+
install | reinstall)
4040
if [[ $cur == */* ]]; then
4141
_filedir deb
4242
return
@@ -66,7 +66,7 @@ _apt_get()
6666
fi
6767

6868
case $prev in
69-
--help | --version | --option | -!(-*)[hvo])
69+
--error-on | --help | --version | --option | -!(-*)[ehvo])
7070
return
7171
;;
7272
--config-file | -!(-*)c)
@@ -94,13 +94,13 @@ _apt_get()
9494
--trivial-only --no-remove --auto-remove --autoremove --only-source
9595
--diff-only --dsc-only --tar-only --arch-only --indep-only
9696
--allow-unauthenticated --no-allow-insecure-repositories
97-
--allow-releaseinfo-change --show-progress --with-source --help
98-
--version --config-file --option' -- "$cur"))
97+
--allow-releaseinfo-change --show-progress --with-source --error-on
98+
--help --version --config-file --option' -- "$cur"))
9999
else
100100
COMPREPLY=($(compgen -W 'update upgrade dist-upgrade
101-
dselect-upgrade install remove purge source build-dep check
102-
download clean autoclean autoremove changelog indextargets' \
103-
-- "$cur"))
101+
dselect-upgrade install reinstall remove purge source build-dep
102+
satisfy check download clean autoclean autoremove changelog
103+
indextargets' -- "$cur"))
104104
fi
105105

106106
} &&

0 commit comments

Comments
 (0)