5f99eb5afd3c19683f178ddb57bb9345391d3548
- Author
- Marc Cornellà <hello@mcornella.com>
- Committer
- Marc Cornellà <hello@mcornella.com>
- Date
Message
fix(cli): get branch and tags from OMZ folder in `omz changelog` completion
Diff
1diff --git a/lib/cli.zsh b/lib/cli.zsh
2index 2189e24ca13c18c39e5b0fc4ba795ae29c3526d4..f40a4226e61e95b5a42f36d7ae1799af69947635 100644
3--- a/lib/cli.zsh
4+++ b/lib/cli.zsh
5@@ -35,7 +35,7 @@ function _omz {
6 elif (( CURRENT == 3 )); then
7 case "$words[2]" in
8 changelog) local -a refs
9- refs=("${(@f)$(command git for-each-ref --format="%(refname:short):%(subject)" refs/heads refs/tags)}")
10+ refs=("${(@f)$(command git -C "$ZSH" for-each-ref --format="%(refname:short):%(subject)" refs/heads refs/tags)}")
11 _describe 'command' refs ;;
12 plugin) subcmds=(
13 'disable:Disable plugin(s)'