]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/fsck.cramfs
setterm: disallow "default" for --ulcolor/--hbcolor
[thirdparty/util-linux.git] / bash-completion / fsck.cramfs
1 _fsck.cramfs_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 '-b'|'--blocksize')
9 COMPREPLY=( $(compgen -W "size" -- $cur) )
10 return 0
11 ;;
12 '--extract')
13 local IFS=$'\n'
14 compopt -o filenames
15 COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/"}) )
16 return 0
17 ;;
18 '-h'|'--help'|'-V'|'--version')
19 return 0
20 ;;
21 esac
22 case $cur in
23 -*)
24 COMPREPLY=( $(compgen -W "--verbose --blocksize --extract --help --version" -- $cur) )
25 return 0
26 ;;
27 esac
28 local IFS=$'\n'
29 compopt -o filenames
30 COMPREPLY=( $(compgen -f -- $cur) )
31 return 0
32 }
33 complete -F _fsck.cramfs_module fsck.cramfs