]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/fallocate
su: use lib/pty-session.c code for --pty
[thirdparty/util-linux.git] / bash-completion / fallocate
1 _fallocate_module()
2 {
3 local cur prev OPTS
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 case $prev in
8 '-o'|'--offset'|'-l'|'--length')
9 COMPREPLY=( $(compgen -W "bytes" -- $cur) )
10 return 0
11 ;;
12 '-h'|'--help'|'-V'|'--version')
13 return 0
14 ;;
15 esac
16 case $cur in
17 -*)
18 OPTS="
19 --collapse-range
20 --dig-holes
21 --insert-range
22 --length
23 --keep-size
24 --offset
25 --punch-hole
26 --zero-range
27 --posix
28 --verbose
29 --help
30 --version
31 "
32 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
33 return 0
34 ;;
35 esac
36 local IFS=$'\n'
37 compopt -o filenames
38 COMPREPLY=( $(compgen -f -- $cur) )
39 return 0
40 }
41 complete -F _fallocate_module fallocate