Skip to content

Commit

Permalink
Merge branch 'joshzcold-master' into develop
Browse files Browse the repository at this point in the history
I've signed these commits myself.
  • Loading branch information
TheLocehiliosan committed Jul 8, 2022
2 parents 6a49e84 + 2cc64a2 commit d49005c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions completion/zsh/_yadm
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit d49005c

Please sign in to comment.