16 lines
255 B
Text
16 lines
255 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
_dote_completions()
|
||
|
{
|
||
|
if [ "${#COMP_WORDS[@]}" != "2" ]; then
|
||
|
return
|
||
|
fi
|
||
|
|
||
|
COMPREPLY=()
|
||
|
while IFS='' read -r line
|
||
|
do
|
||
|
COMPREPLY+=("$line")
|
||
|
done < <(compgen -W "$(.e -l)" "${COMP_WORDS[1]}")
|
||
|
}
|
||
|
complete -F _dote_completions ".e"
|