From 5df4a79951cde6eb84873ee239598993d0b6858f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnter=20Z=C3=B6chbauer?= Date: Sun, 26 Apr 2020 17:11:44 +0200 Subject: Change install directory suggestion to `~/.local/bin` instead of `~/.cargo/bin` --- docs/user/readme.adoc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/user/readme.adoc b/docs/user/readme.adoc index c6c0f3ed8..60113e1e0 100644 --- a/docs/user/readme.adoc +++ b/docs/user/readme.adoc @@ -113,14 +113,16 @@ Here are some useful self-diagnostic commands: Other editors generally require the `rust-analyzer` binary to be in `$PATH`. You can download the pre-built binary from the https://github.com/rust-analyzer/rust-analyzer/releases[releases] page. Typically, you then need to rename the binary for your platform, e.g. `rust-analyzer-mac` if you're on Mac OS, to `rust-analzyer` and make it executable in addition to moving it into a directory in your `$PATH`. -On Linux to install the `rust-analyzer` binary into `~/.cargo/bin` which usually is already added to `$PATH`, this commands could be used +On Linux to install the `rust-analyzer` binary into `~/.local/bin`, this commands could be used [source,bash] ---- -$ curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-linux -o ~/.cargo/bin/rust-analyzer -$ chmod +x ~/.cargo/bin/rust-analyzer +$ curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-linux -o ~/.local/bin/rust-analyzer +$ chmod +x ~/.local/bin/rust-analyzer ---- +Ensure `~/cargo/bin` is listed in the `$PATH` variable. + Alternatively, you can install it from source using the following command: [source,bash] -- cgit v1.2.3