From 6e388c369302ac2b133cfae3a4dd16fe5c0ad438 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Wed, 26 Feb 2020 19:20:24 -0500 Subject: [PATCH 1/2] fix(README): typo fix Fixes a bad link to the completion scripts in the `README`. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 99b6049..070eb7a 100644 --- a/README.md +++ b/README.md @@ -194,7 +194,7 @@ cheat -p personal -t networking --regex -s '(?:[0-9]{1,3}\.){3}[0-9]{1,3}' Advanced Usage -------------- Shell autocompletion is currently available for the `bash` and `fish` shells. -Copy the relevant [completion script][completion-scripts] into the appropriate +Copy the relevant [completion script][completions] into the appropriate directory on your filesystem to enable autocompletion. (This directory will vary depending on operating system and shell specifics.) @@ -206,6 +206,6 @@ integration: 2. Set an envvar: `export CHEAT_USE_FZF=true` [Releases]: https://github.com/cheat/cheat/releases -[bash]: https://github.com/cheat/cheat/blob/master/scripts/fzf.bash [cheatsheets]: https://github.com/cheat/cheatsheets +[completions]: https://github.com/cheat/cheat/tree/master/scripts [fzf]: https://github.com/junegunn/fzf From 8453af860166863068a6cf9570ad0fbc270e4603 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Wed, 26 Feb 2020 19:21:07 -0500 Subject: [PATCH 2/2] fix(Makefile): build targets Adds missing dependencies to the `build` and `install` targets. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 98bc242..802677b 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ releases := \ ## build: builds an executable for your architecture .PHONY: build -build: $(dist_dir) clean generate +build: $(dist_dir) clean vendor generate $(GO) build $(BUILD_FLAGS) -o $(dist_dir)/cheat $(cmd_dir) ## build-release: builds release executables @@ -85,7 +85,7 @@ generate: ## install: builds and installs cheat on your PATH .PHONY: install -install: +install: build $(GO) install $(BUILD_FLAGS) $(GOBIN) $(cmd_dir) ## clean: removes compiled executables