_gsl_completions()
{
local gslfiles cur
gslfiles=$(ls -1 *.gsl 2>/dev/null)
cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=( $(compgen -W "$gslfiles" -- ${cur}) )
return 0
}
complete -F _gsl_completions 'gsl'