Skip to content

Commit

Permalink
bugfix: Change #compdef $PROG to #compdef vfox in zsh completion script
Browse files Browse the repository at this point in the history
Previously, the zsh completion script used a variable $PROG for the #compdef directive. This required the user to set the $PROG variable to 'vfox' before sourcing the script for the completion to work correctly.

close #16
  • Loading branch information
aooohan committed Jan 12, 2024
1 parent 8b91e4d commit f7fd3a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions completions/zsh_autocomplete
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#compdef $PROG
#compdef vfox

_cli_zsh_autocomplete() {
local -a opts
Expand All @@ -17,4 +17,4 @@ _cli_zsh_autocomplete() {
fi
}

compdef _cli_zsh_autocomplete $PROG
compdef _cli_zsh_autocomplete vfox

0 comments on commit f7fd3a8

Please sign in to comment.