Quick updates to the bash completion script
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
a486fec3c4
commit
520841ee8a
|
@ -7,18 +7,6 @@
|
||||||
# Distributed under the terms of the GNU General Public License, v2 or later.
|
# Distributed under the terms of the GNU General Public License, v2 or later.
|
||||||
#
|
#
|
||||||
|
|
||||||
## ChangeLog ##
|
|
||||||
#
|
|
||||||
# * 3.0 (2007-02-18)
|
|
||||||
# - Updated to pacman 3.0.0 options
|
|
||||||
# * 1.1 (2004-01-17)
|
|
||||||
# - Code cleanup
|
|
||||||
# - Updated to pacman 2.7.2-2
|
|
||||||
# * 2004-02-16 (orelien)
|
|
||||||
# - Improved available_{pkgs,groups) functions
|
|
||||||
# - Added support for querying groups
|
|
||||||
#
|
|
||||||
|
|
||||||
## initial functions
|
## initial functions
|
||||||
|
|
||||||
rem_selected ()
|
rem_selected ()
|
||||||
|
@ -105,8 +93,8 @@ _makepkg ()
|
||||||
|
|
||||||
if [[ "$cur" == -* ]]; then
|
if [[ "$cur" == -* ]]; then
|
||||||
COMPREPLY=( $( compgen -W '\
|
COMPREPLY=( $( compgen -W '\
|
||||||
|
-A --ignorearch \
|
||||||
-b --builddeps \
|
-b --builddeps \
|
||||||
-B --noccache \
|
|
||||||
-c --clean \
|
-c --clean \
|
||||||
-C --cleancache \
|
-C --cleancache \
|
||||||
-d --nodeps \
|
-d --nodeps \
|
||||||
|
@ -115,14 +103,14 @@ _makepkg ()
|
||||||
-g --geninteg \
|
-g --geninteg \
|
||||||
-h --help \
|
-h --help \
|
||||||
-i --install \
|
-i --install \
|
||||||
-j \
|
|
||||||
-L --log \
|
-L --log \
|
||||||
-m --nocolor \
|
-m --nocolor \
|
||||||
-o --nobuild \
|
-o --nobuild \
|
||||||
-p \
|
-p \
|
||||||
-r --rmdeps \
|
-r --rmdeps \
|
||||||
-s --syncdeps \
|
-s --syncdeps \
|
||||||
-S --usesudo \
|
--asroot \
|
||||||
|
--source \
|
||||||
--noconfirm \
|
--noconfirm \
|
||||||
--noprogressbar' -- $cur ) )
|
--noprogressbar' -- $cur ) )
|
||||||
fi
|
fi
|
||||||
|
@ -184,6 +172,7 @@ _pacman ()
|
||||||
print-uris) mod="${mod}p" ;;
|
print-uris) mod="${mod}p" ;;
|
||||||
search) mod="${mod}s" ;;
|
search) mod="${mod}s" ;;
|
||||||
sysupgrade) mod="${mod}u" ;;
|
sysupgrade) mod="${mod}u" ;;
|
||||||
|
upgrades) mod="${mod}u" ;;
|
||||||
downloadonly) mod="${mod}w" ;;
|
downloadonly) mod="${mod}w" ;;
|
||||||
refresh) mod="${mod}y" ;;
|
refresh) mod="${mod}y" ;;
|
||||||
orphans) mod="${mod}e" ;;
|
orphans) mod="${mod}e" ;;
|
||||||
|
@ -192,7 +181,6 @@ _pacman ()
|
||||||
file) mod="${mod}p" ;;
|
file) mod="${mod}p" ;;
|
||||||
search) mod="${mod}s" ;;
|
search) mod="${mod}s" ;;
|
||||||
cascade) mod="${mod}c" ;;
|
cascade) mod="${mod}c" ;;
|
||||||
nodeps) mod="${mod}d" ;;
|
|
||||||
dbonly) mod="${mod}k" ;;
|
dbonly) mod="${mod}k" ;;
|
||||||
nosave) mod="${mod}n" ;;
|
nosave) mod="${mod}n" ;;
|
||||||
recursive) mod="${mod}s" ;;
|
recursive) mod="${mod}s" ;;
|
||||||
|
@ -304,6 +292,8 @@ _pacman ()
|
||||||
-o --owns \
|
-o --owns \
|
||||||
-p --file \
|
-p --file \
|
||||||
-s --search \
|
-s --search \
|
||||||
|
-t --test \
|
||||||
|
-u --upgrades \
|
||||||
--config \
|
--config \
|
||||||
--noconfirm \
|
--noconfirm \
|
||||||
--ask \
|
--ask \
|
||||||
|
@ -338,6 +328,9 @@ _pacman ()
|
||||||
elif _instring $mod p; then
|
elif _instring $mod p; then
|
||||||
COMPREPLY=( $( compgen -d -- "$cur" ) \
|
COMPREPLY=( $( compgen -d -- "$cur" ) \
|
||||||
$( compgen -f -X '!*.pkg.tar.gz' -- "$cur" ) )
|
$( compgen -f -X '!*.pkg.tar.gz' -- "$cur" ) )
|
||||||
|
elif _instring $mod u; then
|
||||||
|
COMPREPLY=''
|
||||||
|
return 0
|
||||||
else
|
else
|
||||||
_installed_pkgs
|
_installed_pkgs
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue