[arch-projects] [PATCH mkinitcpio] bash-completion: find hooks in /usr/lib
Dave Reisner
d at falconindy.com
Thu Mar 15 23:50:20 EDT 2012
On Thu, Mar 15, 2012 at 08:59:11PM -0600, Matthew Monaco wrote:
> From: Matthew Monaco <matthew.monaco at 0x01b.net>
>
> ---
> bash-completion | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/bash-completion b/bash-completion
> index ee544ec..1f26235 100644
> --- a/bash-completion
> +++ b/bash-completion
> @@ -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));;
> + -H|-S) COMPREPLY=($(cd /lib/initcpio/install/ && compgen -f -- $cur) \
> + $(cd /usr/lib/initcpio/install/ && compgen -f -- $cur));;
> *) COMPREPLY=($(compgen -W "${action}" -- "$cur"));;
> esac
> }
> --
> 1.7.9.4
>
Thanks, applied locally. I also added in handling for the new -A flag.
More information about the arch-projects
mailing list