[arch-projects] [PATCH mkinitcpio] bash-completion: find hooks in /usr/lib

Matthew Monaco dgbaley27 at 0x01b.net
Thu Mar 15 22:59:11 EDT 2012


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



More information about the arch-projects mailing list