]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/rename
logger: make socket initialization in main() more readable
[thirdparty/util-linux.git] / bash-completion / rename
CommitLineData
76dceb10
SK
1_rename_module()
2{
3 local cur prev OPTS
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 case $cur in
7 -*)
8 OPTS="-v --verbose -s --symlink -h --help -V --version"
9 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
10 return 0
11 ;;
12 esac
13 case $COMP_CWORD in
14 1)
15 COMPREPLY=( $(compgen -W "expression" -- $cur) )
16 ;;
17 2)
18 COMPREPLY=( $(compgen -W "replacement" -- $cur) )
19 ;;
20 *)
21 compopt -o filenames
22 COMPREPLY=( $(compgen -f -- $cur) )
23 ;;
24 esac
25 return 0
26}
27complete -F _rename_module rename