diff --git a/CHANGELOG.md b/CHANGELOG.md index ed03a64c..c8811d22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Remove confusing README section about the pane-base-index and window-base-index options. These options can be set independently of one another now that #542 and #543 are merged. +- Fix zsh completion when there are no projects ## 0.11.3 ### Misc diff --git a/completion/tmuxinator.zsh b/completion/tmuxinator.zsh index 40a6964f..666a9b7d 100644 --- a/completion/tmuxinator.zsh +++ b/completion/tmuxinator.zsh @@ -4,8 +4,9 @@ _tmuxinator() { projects=(${(f)"$(tmuxinator completions start)"}) if (( CURRENT == 2 )); then - _describe -t commands "tmuxinator subcommands" commands - _describe -t projects "tmuxinator projects" projects + _alternative \ + 'commands:: _describe -t commands "tmuxinator subcommands" commands' \ + 'projects:: _describe -t projects "tmuxinator projects" projects' elif (( CURRENT == 3)); then case $words[2] in copy|debug|delete|open|start)