We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a49e84 + 2cc64a2 commit d49005cCopy full SHA for d49005c
completion/zsh/_yadm
@@ -7,6 +7,20 @@ zstyle -T ':completion:*:yadm:argument-1:descriptions:' format && \
7
zstyle -T ':completion:*:yadm:*:yadm' group-name && \
8
zstyle ':completion:*:yadm:*:yadm' group-name ''
9
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
24
_yadm-alt() {
25
return 0
26
}
0 commit comments