Update autoinstall stuff

This commit is contained in:
Tobias Reisinger 2024-01-15 16:06:59 +01:00
parent f38ec68822
commit 3b16b3440e
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
6 changed files with 57 additions and 33 deletions

View file

@ -30,21 +30,12 @@ _dott_completions()
}
complete -F _dott_completions ".t"
#_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"
for additional_completions in "$XDG_CONFIG_HOME/completionsrc.d/"*; do
# shellcheck disable=1090
. "$additional_completions"
done
completions_dir="$XDG_CONFIG_HOME/completionsrc.d/"
if [ -n "$(ls "$completions_dir" 2>/dev/null)" ]
then
for additional_completions in "$completions_dir"*
do
# shellcheck disable=1090
. "$additional_completions"
done
fi