Moved Bash completion for "hgsync" to "utils" module.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 16 Dec 2023 18:07:34 +0200
changeset 1038 79c56b8fb8e0
parent 1037 b386e087b97f
child 1039 78cdb4a057e3
Moved Bash completion for "hgsync" to "utils" module.
.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]}