Moved Bash completion for "hgsync" to "utils" module.
--- a/.bash_completion Mon Dec 11 00:27:20 2023 +0200
+++ b/.bash_completion Sat Dec 16 18:07:34 2023 +0200
@@ -35,23 +35,6 @@
# builtin completes on builtins
complete -b builtin
-_hgsync() {
- local cur=${COMP_WORDS[COMP_CWORD]}
- case $COMP_CWORD in
- 0|1)
- COMPREPLY=( $(compgen -W "local remote pull push info status help --help" -- $cur) )
- compopt +o nospace
- return ;;
- 2)
- COMPREPLY=( $(compgen -d -S / -- "$cur") )
- return ;;
- *)
- COMPREPLY=( )
- return ;;
- esac
-}
-complete -F _hgsync -o nospace hgsync
-
_pathsearch() {
local prev cur=${COMP_WORDS[COMP_CWORD]}
[[ $COMP_CWORD > 0 ]] && prev=${COMP_WORDS[COMP_CWORD-1]}