summaryrefslogtreecommitdiff
path: root/contrib/bash_completion
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-07-19 11:15:11 +0200
committerDan McGee <dan@archlinux.org>2010-03-14 18:44:40 -0500
commitd39b1dbe627af218e49be6424857089a5888903b (patch)
tree9225a360217ede5c5817fa41fb182454008dce6e /contrib/bash_completion
parent67700b926a1eff745272975e7b089b80bf72cc30 (diff)
downloadpacman-d39b1dbe627af218e49be6424857089a5888903b.tar.xz
Add new --print operation for all operations
And a new --print-format option to configure the output. This implements FS#14208 Example usage : pacman -Sp --print-format "%r/%n-%v : %l [%s]" kdelibs extra/kdelibs-4.3.2-4 : ftp://mir2.archlinuxfr.org/archlinux/extra/os/i686/kdelibs-4.3.2-4-i686.pkg.tar.gz [0,00] Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib/bash_completion')
-rw-r--r--contrib/bash_completion9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/bash_completion b/contrib/bash_completion
index a3ca950f..f0b5f9cc 100644
--- a/contrib/bash_completion
+++ b/contrib/bash_completion
@@ -167,7 +167,7 @@ _pacman ()
groups) mod="${mod}g" ;;
info) mod="${mod}i" ;;
list) mod="${mod}l" ;;
- print-uris) mod="${mod}p" ;;
+ print) mod="${mod}p" ;;
search) mod="${mod}s" ;;
sysupgrade) mod="${mod}u" ;;
upgrades) mod="${mod}u" ;;
@@ -231,6 +231,8 @@ _pacman ()
-v --verbose \
-r --root \
-b --dbpath \
+ -p --print \
+ --print-format \
--cachedir \
' -- $cur ) )
return 0
@@ -252,6 +254,8 @@ _pacman ()
-v --verbose \
-r --root \
-b --dbpath \
+ -p --print \
+ --print-format \
--cachedir \
' -- $cur ) )
return 0
@@ -267,7 +271,6 @@ _pacman ()
-h --help \
-i --info \
-l --list \
- -p --print-uris \
-s --search \
-u --sysupgrade \
-w --downloadonly \
@@ -283,6 +286,8 @@ _pacman ()
-v --verbose \
-r --root \
-b --dbpath \
+ -p --print \
+ --print-format \
--cachedir \
' -- $cur ) )
return 0