summaryrefslogtreecommitdiff
path: root/completions/arch
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
commit6d88f1055806932d9291f96847d2b691cccda2cd (patch)
tree0ff79eedaa8a239331256048981deedbd0721965 /completions/arch
parent059a87a5936cfebfd2d71ab8057002cafb2ea051 (diff)
downloadbash-completion-6d88f1055806932d9291f96847d2b691cccda2cd.tar.gz
New upstream version 2.7upstream/2.7
Diffstat (limited to 'completions/arch')
-rw-r--r--completions/arch11
1 files changed, 5 insertions, 6 deletions
diff --git a/completions/arch b/completions/arch
index 74e9adec..cd33b4f0 100644
--- a/completions/arch
+++ b/completions/arch
@@ -11,19 +11,18 @@ _arch()
case $prev in
-w|-g|-d|--welcome-msg|--goodbye-msg|--digest)
COMPREPLY=( $( compgen -W 'y n' -- "$cur" ) )
- return 0
+ return
;;
-d|--file)
_filedir
- return 0
+ return
;;
esac
- $split && return 0
+ $split && return
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--wipe --start --end --quiet --help' \
- -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
else
local args=$cword
for (( i=1; i < cword; i++ )); do
@@ -44,4 +43,4 @@ _arch()
} &&
complete -F _arch arch
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh