Add .e command and completionsrc

This commit is contained in:
Tobias Reisinger 2022-08-01 15:59:07 +02:00
parent 5c1bfe5b3c
commit 0dbe93759a
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 46 additions and 5 deletions

15
.config/completionsrc Normal file
View file

@ -0,0 +1,15 @@
#!/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"