Skip to content

Commit b76b16d

Browse files
committed
feat(apt-get): recognize auto-remove as autoremove alias
1 parent 6925fbd commit b76b16d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completions/apt-get

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ _apt_get()
2020

2121
local special i
2222
for ((i = 1; i < ${#words[@]} - 1; i++)); do
23-
if [[ ${words[i]} == @(install|remove|autoremove|purge|source|build-dep|download|changelog) ]]; then
23+
if [[ ${words[i]} == @(install|remove|auto?(-)remove|purge|source|build-dep|download|changelog) ]]; then
2424
special=${words[i]}
2525
break
2626
fi
2727
done
2828

2929
if [[ -v special ]]; then
3030
case $special in
31-
remove | autoremove | purge)
31+
remove | auto?(-)remove | purge)
3232
_comp_cmd_apt_get_installed_packages
3333
;;
3434
source)

0 commit comments

Comments
 (0)