]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/fsck.cramfs
Merge branch 'master' of https://github.com/yurchor/util-linux
[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 '-x'|'--destination')
9 local IFS=$'\n'
10 compopt -o filenames
11 COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/"}) )
12 return 0
13 ;;
14 '-h'|'--help'|'-V'|'--version')
15 return 0
16 ;;
17 esac
18 OPTS='--verbose --destination --help --version file'
19 COMPREPLY=( $(compgen -W "${OPTS[*]}" -S ' ' -- $cur) )
20 return 0
21 }
22 complete -F _fsck.cramfs_module fsck.cramfs