1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-15 18:30:08 +00:00

fix(cli): get branch and tags from OMZ folder in omz changelog completion

This commit is contained in:
Marc Cornellà 2021-09-30 10:18:53 +02:00
parent 54783f66b8
commit 5f99eb5afd
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -35,7 +35,7 @@ function _omz {
elif (( CURRENT == 3 )); then
case "$words[2]" in
changelog) local -a refs
refs=("${(@f)$(command git for-each-ref --format="%(refname:short):%(subject)" refs/heads refs/tags)}")
refs=("${(@f)$(command git -C "$ZSH" for-each-ref --format="%(refname:short):%(subject)" refs/heads refs/tags)}")
_describe 'command' refs ;;
plugin) subcmds=(
'disable:Disable plugin(s)'