# HG changeset patch # User Oleksandr Gavenko # Date 1702742854 -7200 # Node ID 79c56b8fb8e051345e3e83a2617d7db0a4ac4c87 # Parent b386e087b97f93c8617638a9fe64a9ef201280c4 Moved Bash completion for "hgsync" to "utils" module. diff -r b386e087b97f -r 79c56b8fb8e0 .bash_completion --- 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]}