Move some scripts to external repo

This commit is contained in:
Tobias Reisinger 2024-01-09 16:52:53 +01:00
parent 6a658b2f7c
commit 1e34655bac
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
6 changed files with 102 additions and 325 deletions

View file

@ -28,18 +28,23 @@ _dott_completions()
compgen -f "${COMP_WORDS[2]}"
fi
}
complete -o filenames -F _dott_completions ".t"
complete -F _dott_completions ".t"
_autostart_manage_completions()
{
if [ "${#COMP_WORDS[@]}" == "2" ]; then
return
fi
#_autostart_manage_completions()
#{
# if [ "${#COMP_WORDS[@]}" == "2" ]; then
# return
# fi
#
# COMPREPLY=()
# while IFS='' read -r line
# do
# COMPREPLY+=("$line")
# done < <(compgen -W "$(autostart-manage list)" "${COMP_WORDS[1]}")
#}
#complete -F _autostart_manage_completions "autostart-manage"
COMPREPLY=()
while IFS='' read -r line
do
COMPREPLY+=("$line")
done < <(compgen -W "$(autostart-manage list)" "${COMP_WORDS[1]}")
}
complete -F _autostart_manage_completions "autostart-manage"
for additional_completions in "$XDG_CONFIG_HOME/completionsrc.d/"*; do
# shellcheck disable=1090
. "$additional_completions"
done