summaryrefslogtreecommitdiff
path: root/completions/gcl
diff options
context:
space:
mode:
Diffstat (limited to 'completions/gcl')
-rw-r--r--completions/gcl14
1 files changed, 3 insertions, 11 deletions
diff --git a/completions/gcl b/completions/gcl
index e0931536..2796ca07 100644
--- a/completions/gcl
+++ b/completions/gcl
@@ -1,13 +1,11 @@
+# -*- shell-script -*-
# bash programmable completion for various Common Lisp implementations by
# Nikodemus Siivola <nikodemus@random-state.net>
-have gcl &&
_gcl()
{
- local cur
-
- COMPREPLY=()
- _get_comp_words_by_ref cur
+ local cur prev words cword
+ _init_completion || return
# completing an option (may or may not be separated by a space)
if [[ "$cur" == -* ]]; then
@@ -21,10 +19,4 @@ _gcl()
} &&
complete -F _gcl -o default gcl
-# Local variables:
-# mode: shell-script
-# sh-basic-offset: 4
-# sh-indent-comment: t
-# indent-tabs-mode: nil
-# End:
# ex: ts=4 sw=4 et filetype=sh