summaryrefslogtreecommitdiffstats
path: root/shell-completion/colcrt
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/colcrt')
-rw-r--r--shell-completion/colcrt20
1 files changed, 20 insertions, 0 deletions
diff --git a/shell-completion/colcrt b/shell-completion/colcrt
new file mode 100644
index 000000000..628416e6d
--- /dev/null
+++ b/shell-completion/colcrt
@@ -0,0 +1,20 @@
+_colcrt_module()
+{
+ local cur OPTS
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ case $cur in
+ -*)
+ OPTS=" - --no-underlining
+ -2 --half-lines
+ -V --version
+ -h --help"
+ COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
+ return 0
+ ;;
+ esac
+ compopt -o filenames
+ COMPREPLY=( $(compgen -f -- $cur) )
+ return 0
+}
+complete -F _colcrt_module colcrt