From c1a07b155430357052e43c52edaaa89d002aaa7e Mon Sep 17 00:00:00 2001 From: Matthew Monaco Date: Thu, 15 Mar 2012 20:59:11 -0600 Subject: bash-completion: find hooks in /usr/lib [dreisner: add handling for -A flag] Signed-off-by: Dave Reisner --- bash-completion | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bash-completion b/bash-completion index ee544ec..6329702 100644 --- a/bash-completion +++ b/bash-completion @@ -33,7 +33,7 @@ _find_kernel_versions() { _mkinitcpio() { local action cur prev - action="-b -c -g -H -h -k -L -M -n -p -S -s -v -z" + action="-A -b -c -g -H -h -k -L -M -n -p -S -s -v -z" _get_comp_words_by_ref cur prev case "$prev" in -c|-g) _filedir;; @@ -41,7 +41,8 @@ _mkinitcpio() { -b) _filedir -d;; -p) COMPREPLY=($(cd /etc/mkinitcpio.d/ && compgen -X '!*.preset' -f -- $cur)) COMPREPLY=("${COMPREPLY[@]%.preset}");; - -H|-S) COMPREPLY=($(cd /lib/initcpio/install/ && compgen -f -- $cur));; + -A|-H|-S) COMPREPLY=($(cd /lib/initcpio/install/ && compgen -f -- $cur) \ + $(cd /usr/lib/initcpio/install/ && compgen -f -- $cur));; *) COMPREPLY=($(compgen -W "${action}" -- "$cur"));; esac } -- cgit v1.2.3-24-g4f1b