Merge branch 'joshzcold-master' into develop

I've signed these commits myself.
This commit is contained in:
Tim Byrne 2022-07-08 08:11:30 -05:00
commit d49005ce6c
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12
1 changed files with 14 additions and 0 deletions

View File

@ -7,6 +7,20 @@ zstyle -T ':completion:*:yadm:argument-1:descriptions:' format && \
zstyle -T ':completion:*:yadm:*:yadm' group-name && \
zstyle ':completion:*:yadm:*:yadm' group-name ''
function _yadm-add(){
local -a yadm_options yadm_path
yadm_path="$(yadm rev-parse --show-toplevel)"
yadm_options=($(yadm status --porcelain=v1 |
awk -v yadm_path=${yadm_path} '{printf "%s/%s:%s\n", yadm_path, $2, $1}' ))
_describe 'command' yadm_options
_files
}
function _yadm-checkout(){
_yadm-add
}
_yadm-alt() {
return 0
}