Add .e command and completionsrc
This commit is contained in:
parent
5c1bfe5b3c
commit
0dbe93759a
5 changed files with 46 additions and 5 deletions
15
.config/completionsrc
Normal file
15
.config/completionsrc
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue