]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/hardlink
su: use lib/pty-session.c code for --pty
[thirdparty/util-linux.git] / bash-completion / hardlink
1 _hardlink_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'|'--exclude')
9 COMPREPLY=( $(compgen -W "regex" -- $cur) )
10 return 0
11 ;;
12 '-H'|'--help'|'-V'|'--version')
13 return 0
14 ;;
15 esac
16 case $cur in
17 -*)
18 OPTS="
19 --content
20 --dry-run
21 --verbose
22 --force
23 --exclude
24 --version
25 --help
26 "
27 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
28 return 0
29 ;;
30 esac
31 local IFS=$'\n'
32 compopt -o filenames
33 COMPREPLY=( $(compgen -d -- $cur) )
34 return 0
35 }
36 complete -F _hardlink_module hardlink