2022-02-16 16:57:20 +01:00
|
|
|
_gsl_completions()
|
|
|
|
{
|
|
|
|
local gslfiles cur
|
|
|
|
gslfiles=$(ls -1 *.gsl 2>/dev/null)
|
|
|
|
|
|
|
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
|
|
|
|
|
|
COMPREPLY=( $(compgen -W "$gslfiles" -- ${cur}) )
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2022-02-17 11:03:25 +01:00
|
|
|
complete -F _gsl_completions 'gsl'
|