zsh,git: Add completion for git-https-and-ssh

Complete remotes.

Also remove redundant compdef lines. The _git-<command> functions are
used automatically.
This commit is contained in:
2023-01-25 03:19:11 +01:00
parent 47e13d36a6
commit e1b46bddc3

View File

@@ -50,11 +50,9 @@ compdef nvim-man=man
# and `git cow`).
_git-checkout-worktree() { _git-checkout }
_git-commit-last-msg() { _git-commit }
_git-https-and-ssh() { __git_remotes }
compdef _git-log glog
# TODO: simple for loop for autoload/git/git-*
compdef _git-checkout-worktree git-checkout-worktree
compdef _git-commit-last-msg git-commit-last-msg
# Run git's completion once to avoid a `command not found` error when using the
# completion functions on other programs without having completed something for