From fb56513d177c21456b9ede41b25a49d1746328c7 Mon Sep 17 00:00:00 2001 From: Erik Flodin Date: Sun, 3 Jan 2021 11:10:51 +0100 Subject: [PATCH] zsh: complete all supported git clone parameters for yadm clone --- completion/zsh/_yadm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/completion/zsh/_yadm b/completion/zsh/_yadm index a1997a1..9423ac5 100644 --- a/completion/zsh/_yadm +++ b/completion/zsh/_yadm @@ -19,10 +19,12 @@ _yadm-clone() { _arguments \ '(--bootstrap --no-bootstrap)--bootstrap[force bootstrap, without prompt]' \ '(--bootstrap --no-bootstrap)--no-bootstrap[prevent bootstrap, without prompt]' \ - '-b[branch name]:' \ '-f[force overwrite of existing repository]' \ - '-w[work tree path]: :_files -/' \ - '*:' + '-w[yadm work tree path]: :_files -/' + + local curcontext="${curcontext%:*:*}:git:" + + words=("git" "${words[@]}") CURRENT=$((CURRENT + 1)) service=git _git } _yadm-config() {