mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
Fix duplicates from completion
This commit is contained in:
parent
beb83077d8
commit
7573e18a89
@ -8,12 +8,13 @@ zstyle -T ':completion:*:yadm:*:yadm' group-name && \
|
|||||||
zstyle ':completion:*:yadm:*:yadm' group-name ''
|
zstyle ':completion:*:yadm:*:yadm' group-name ''
|
||||||
|
|
||||||
function _yadm-add(){
|
function _yadm-add(){
|
||||||
|
local -a yadm_options yadm_path
|
||||||
yadm_path="$(yadm rev-parse --show-toplevel)"
|
yadm_path="$(yadm rev-parse --show-toplevel)"
|
||||||
yadm_options=$(yadm status --porcelain=v1 |
|
yadm_options=($(yadm status --porcelain=v1 |
|
||||||
awk -v yadm_path=${yadm_path} '{printf "%s/\"%s\"\\:\"%s\" ", yadm_path, $2, $1 }' )
|
awk -v yadm_path=${yadm_path} '{printf "%s/%s ", yadm_path, $2}' ))
|
||||||
_alternative \
|
|
||||||
"args:custom arg:(($yadm_options))" \
|
_describe 'command' yadm_options
|
||||||
'files:filename:_files'
|
_files
|
||||||
}
|
}
|
||||||
|
|
||||||
function _yadm-checkout(){
|
function _yadm-checkout(){
|
||||||
|
Loading…
Reference in New Issue
Block a user