Skip to content

Commit d49005c

Browse files
Merge branch 'joshzcold-master' into develop
I've signed these commits myself.
2 parents 6a49e84 + 2cc64a2 commit d49005c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

completion/zsh/_yadm

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ zstyle -T ':completion:*:yadm:argument-1:descriptions:' format && \
77
zstyle -T ':completion:*:yadm:*:yadm' group-name && \
88
zstyle ':completion:*:yadm:*:yadm' group-name ''
99

10+
function _yadm-add(){
11+
local -a yadm_options yadm_path
12+
yadm_path="$(yadm rev-parse --show-toplevel)"
13+
yadm_options=($(yadm status --porcelain=v1 |
14+
awk -v yadm_path=${yadm_path} '{printf "%s/%s:%s\n", yadm_path, $2, $1}' ))
15+
16+
_describe 'command' yadm_options
17+
_files
18+
}
19+
20+
function _yadm-checkout(){
21+
_yadm-add
22+
}
23+
1024
_yadm-alt() {
1125
return 0
1226
}

0 commit comments

Comments
 (0)