summaryrefslogtreecommitdiffstats
path: root/completions/gcl
diff options
context:
space:
mode:
Diffstat (limited to 'completions/gcl')
-rw-r--r--completions/gcl14
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/gcl b/completions/gcl
index 73a18b2..7b98767 100644
--- a/completions/gcl
+++ b/completions/gcl
@@ -2,20 +2,20 @@
# bash programmable completion for various Common Lisp implementations by
# Nikodemus Siivola <nikodemus@random-state.net>
-_gcl()
+_comp_cmd_gcl()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
# completing an option (may or may not be separated by a space)
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '-eval -load -f -batch -dir -libdir -compile
- -o-file -c-file -h-file -data-file -system-p' -- "$cur"))
+ _comp_compgen -- -W '-eval -load -f -batch -dir -libdir -compile
+ -o-file -c-file -h-file -data-file -system-p'
else
- _filedir
+ _comp_compgen_filedir
fi
} &&
- complete -F _gcl -o default gcl
+ complete -F _comp_cmd_gcl -o default gcl
# ex: filetype=sh