From 76268ec813d594ad87c7b3818111684418b1940c Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Fri, 6 Dec 2019 21:35:13 +0200 Subject: [PATCH] Update README install instructions Fixes #6. --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 19ab0e0..287e99b 100644 --- a/README.md +++ b/README.md @@ -92,12 +92,14 @@ appropriate commands for every OS. Assuming you've installed `libmagic` properly and you have [setup a Go environment](https://golang.org/doc/install), Use the following command to -install Pistol to `$GOPATH/.bin/pistol`: +install Pistol to `$GOPATH/bin/pistol`: ```sh -go get -u github.com/doronbehar/pistol/cmd/pistol +env GO111MODULE=on go get -u github.com/doronbehar/pistol/cmd/pistol ``` +[3](#f3) + ## Usage ``` @@ -233,7 +235,7 @@ export PISTOL_CHROMA_FORMATTER=terminal16m Recent versions of [Lf](https://github.com/gokcehan/lf) support [256 colors](https://github.com/gokcehan/lf/pull/93) in it's preview window. -AFAIK[3](#f3), [Ranger](https://ranger.github.io/) supports +AFAIK[4](#f4), [Ranger](https://ranger.github.io/) supports 8 colors and Lf's `color256` isn't enabled by default. Therefor, I decided that it'll be best to keep this variable unset in your @@ -266,6 +268,10 @@ succeed in the heroic task of compiling libmagic for Windows and teach 2 [`file` bug report](https://bugs.astron.com/view.php?id=111); [`brotli` bug report](https://github.com/google/brotli/issues/727). [↩](#a2) -3I don't use Ranger anymore, ever since I moved to Lf. If you +3 `env GO111MODULE=on` is needed due to a recent bug / issue +[with Go](https://github.com/golang/go/issues/31529), see +[#6](https://github.com/doronbehar/pistol/issues/6) for more details. [↩](#a3) + +4I don't use Ranger anymore, ever since I moved to Lf. If you have evidence it does support 256 colors, let me know and I'll change the -default. [↩](#a3) +default. [↩](#a4)