summaryrefslogtreecommitdiff
path: root/contrib/zsh_completion
diff options
context:
space:
mode:
authorChantry Xavier <shiningxc@gmail.com>2007-09-05 13:15:22 +0200
committerDan McGee <dan@archlinux.org>2007-09-05 20:28:46 -0500
commit39871375051856f9248d651005ab62e2a309d6ea (patch)
tree710ec850f3a63d3aa971c98960122c447de1d886 /contrib/zsh_completion
parent461bc9e6ce8afee23b6402b4af65aa29b7268c35 (diff)
downloadpacman-39871375051856f9248d651005ab62e2a309d6ea.tar.xz
contrib : update zsh and bash completion to reflect the new sync dbs location.
I wonder how many tools / scripts deal directly with the sync databases under /var/lib/pacman/ , I doubt these are the only ones. Signed-off-by: Chantry Xavier <shiningxc@gmail.com>
Diffstat (limited to 'contrib/zsh_completion')
-rw-r--r--contrib/zsh_completion4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/zsh_completion b/contrib/zsh_completion
index d7e14864..4607bd7e 100644
--- a/contrib/zsh_completion
+++ b/contrib/zsh_completion
@@ -227,9 +227,9 @@ _pacman_completions_all_packages() {
repositories=( $(_call_program repositories cat /etc/pacman.conf | grep "^\[" | sed "s,\(\[\|\]\),,g" | grep -v "^options" | sort -u) )
# these can be specified as either 'package' or 'repository/package'
if [[ "$PREFIX" == "" ]] ; then
- packages=( $(_call_program packages ls /var/lib/pacman/${^repositories} | grep -v "^/" | sed "s,\-[^-]*\-[^-]*$,," | sort -u) )
+ packages=( $(_call_program packages ls /var/lib/pacman/sync/${^repositories} | grep -v "^/" | sed "s,\-[^-]*\-[^-]*$,," | sort -u) )
else
- packages=( $(_call_program packages ls /var/lib/pacman/${^repositories} | grep -v "^/" | grep -e \^$PREFIX | sed "s,\-[^-]*\-[^-]*$,," | sort -u) )
+ packages=( $(_call_program packages ls /var/lib/pacman/sync/${^repositories} | grep -v "^/" | grep -e \^$PREFIX | sed "s,\-[^-]*\-[^-]*$,," | sort -u) )
fi
compadd "$@" -a packages
}