stl-statilque-litterateur/usr/share/bash-completion/completions/stl
2022-07-20 19:37:21 +02:00

13 lines
279 B
Text

_stl_completions()
{
local stlfiles cur
stlfiles=$(find . -type f -name "*.stl" 2>/dev/null \
| awk -F"./articles/" '{print $2}')
cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=( $(compgen -W "$stlfiles" -- ${cur}) )
return 0
}
complete -F _stl_completions 'stl'