summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/bash_completion9
-rw-r--r--contrib/zsh_completion1
2 files changed, 8 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
diff --git a/contrib/zsh_completion b/contrib/zsh_completion
index 01b3c443..f69fe631 100644
--- a/contrib/zsh_completion
+++ b/contrib/zsh_completion
@@ -26,6 +26,7 @@ _pacman_opts_common=(
'--noconfirm[Do not ask for confirmation]'
'--noprogressbar[Do not show a progress bar when downloading files]'
'--noscriptlet[Do not execute the install scriptlet if one exists]'
+ '--print[Only print the targets instead of performing the operation]'
)
# options for passing to _arguments: options for --upgrade commands