summaryrefslogtreecommitdiffstats
path: root/shell/bash-completion
diff options
context:
space:
mode:
authorGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-07 05:14:43 +0200
committerGiancarlo Razzolini <grazzolini@archlinux.org>2019-10-07 05:14:43 +0200
commit9ae6b1f928ef11e277437740908871ab535b655d (patch)
tree32d6ee5d5a5ec799e295e96f7bed516baac793d1 /shell/bash-completion
parent6b7427861b923560c10184ba92df2e7cc13ac258 (diff)
parent51a8337b6c461ac29710664ed084c99f57c4118a (diff)
downloadmkinitcpio-9ae6b1f928ef11e277437740908871ab535b655d.tar.gz
mkinitcpio-9ae6b1f928ef11e277437740908871ab535b655d.tar.xz
Merge branch 'fix-hookdir-flag'v26
Added the hookdir flag to the parser and also added it to the completions.
Diffstat (limited to 'shell/bash-completion')
-rw-r--r--shell/bash-completion4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/bash-completion b/shell/bash-completion
index a0f07dc..8f3663d 100644
--- a/shell/bash-completion
+++ b/shell/bash-completion
@@ -56,7 +56,7 @@ _files_from_dirs() {
_mkinitcpio() {
local action cur prev opts
- opts=(-A --addhooks -c --config -g --generate -H --hookhelp -h --help -k --kernel
+ opts=(-A --addhooks -c --config -D --hookdir -g --generate -H --hookhelp -h --help -k --kernel
-L --listhooks -M --automods -n --nocolor -P --allpresets -p --preset -r --moduleroot
-S --skiphooks -s --save -t --builddir -V --version -v --verbose -z --compress)
@@ -65,7 +65,7 @@ _mkinitcpio() {
case $prev in
-[cg]|--config|--generate)
_filedir ;;
- -r|--moduleroot|-t|--builddir)
+ -D|--hookdir|-r|--moduleroot|-t|--builddir)
_filedir -d ;;
-k|--kernel)
_find_kernel_versions ;;