Skip to content

Commit

Permalink
Generate bash and zsh completion scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Schulz authored and dominikschulz committed Feb 2, 2017
1 parent 8cae28c commit cb48237
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ $(EXECUTABLE)-$(GOOS)-$(GOARCH): $(wildcard *.go)
release: clean
dist/release.sh

completion: build bash.completion zsh.completion
bash.completion: $(EXECUTABLE)-$(GOOS)-$(GOARCH)
./$(EXECUTABLE)-$(GOOS)-$(GOARCH) completion bash >bash.completion

zsh.completion: $(EXECUTABLE)-$(GOOS)-$(GOARCH)
./$(EXECUTABLE)-$(GOOS)-$(GOARCH) completion zsh >zsh.completion

.PHONY: completion
completion: bash.completion zsh.completion

0 comments on commit cb48237

Please sign in to comment.