Move some scripts to external repo
This commit is contained in:
parent
6a658b2f7c
commit
1e34655bac
6 changed files with 102 additions and 325 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue