diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-02-25 15:24:46 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-02-25 15:24:46 +0000 |
commit | 26a255479b1b8cd15789a8bffaa0c37a96edc7e5 (patch) | |
tree | f53588f104c28608b259b178e6276a76be6514bb /urpmi.bash-completion | |
parent | c8bfa4cb4926651c7706da8cd141149e0ad505a9 (diff) | |
download | urpmi-26a255479b1b8cd15789a8bffaa0c37a96edc7e5.tar urpmi-26a255479b1b8cd15789a8bffaa0c37a96edc7e5.tar.gz urpmi-26a255479b1b8cd15789a8bffaa0c37a96edc7e5.tar.bz2 urpmi-26a255479b1b8cd15789a8bffaa0c37a96edc7e5.tar.xz urpmi-26a255479b1b8cd15789a8bffaa0c37a96edc7e5.zip |
- bash-completion:
o restore available-pkgs completion using "urpmq --list" (guillomovitch)
(but only if COMP_URPMI_HDLISTS is set since it's slow)
Diffstat (limited to 'urpmi.bash-completion')
-rw-r--r-- | urpmi.bash-completion | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/urpmi.bash-completion b/urpmi.bash-completion index 41449699..47aa8d67 100644 --- a/urpmi.bash-completion +++ b/urpmi.bash-completion @@ -91,7 +91,9 @@ _urpmi() COMPREPLY=( $( compgen -W "$options" -- $cur ) ) else if [[ ${COMP_WORDS[0]} != *rurpmi ]]; then - # return rpm files (can't list available packages anymore) + if [ -n "${COMP_URPMI_HDLISTS:-}" ]; then + COMPREPLY=( $( compgen -W "$(urpmq --list)" -- $cur ) ) + fi _filedir rpm fi fi |