]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/colcrt
su: use lib/pty-session.c code for --pty
[thirdparty/util-linux.git] / bash-completion / colcrt
CommitLineData
c72fca2c
SK
1_colcrt_module()
2{
d4f9b8d7 3 local cur prev OPTS
c72fca2c
SK
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
d4f9b8d7
VS
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 case $prev in
8 '-h'|'--help'|'-V'|'--version')
9 return 0
10 ;;
11 esac
c72fca2c
SK
12 case $cur in
13 -*)
0d5b9b8a
VS
14 OPTS=" --no-underlining
15 --half-lines
16 --version
17 --help"
c72fca2c
SK
18 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
19 return 0
20 ;;
21 esac
ce3e6b15 22 local IFS=$'\n'
c72fca2c
SK
23 compopt -o filenames
24 COMPREPLY=( $(compgen -f -- $cur) )
25 return 0
26}
27complete -F _colcrt_module colcrt