Add .t for template copying

This commit is contained in:
Tobias Reisinger 2023-10-30 22:50:18 +01:00
parent 99dfe95131
commit 478f6722ba
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 69 additions and 12 deletions

View file

@ -14,6 +14,20 @@ _dote_completions()
}
complete -F _dote_completions ".e"
_dott_completions()
{
if [ "${#COMP_WORDS[@]}" == "1" ]; then
return
fi
COMPREPLY=()
while IFS='' read -r line
do
COMPREPLY+=("$line")
done < <(compgen -W "$(.t -l)" "${COMP_WORDS[1]}")
}
complete -F _dott_completions ".t"
_autostart_manage_completions()
{
if [ "${#COMP_WORDS[@]}" == "2" ]; then