aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünter Zöchbauer <[email protected]>2020-04-26 16:11:44 +0100
committerGitHub <[email protected]>2020-04-26 16:11:44 +0100
commit5df4a79951cde6eb84873ee239598993d0b6858f (patch)
treed74f7bd3dfdb203f943fd9df27a98c8b54dd053e
parent482e912fa0b1df03c6ad99c1d92a894889811e00 (diff)
Change install directory suggestion to `~/.local/bin`
instead of `~/.cargo/bin`
-rw-r--r--docs/user/readme.adoc8
1 files 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:
113Other editors generally require the `rust-analyzer` binary to be in `$PATH`. 113Other editors generally require the `rust-analyzer` binary to be in `$PATH`.
114You 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`. 114You 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`.
115 115
116On Linux to install the `rust-analyzer` binary into `~/.cargo/bin` which usually is already added to `$PATH`, this commands could be used 116On Linux to install the `rust-analyzer` binary into `~/.local/bin`, this commands could be used
117 117
118[source,bash] 118[source,bash]
119---- 119----
120$ curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-linux -o ~/.cargo/bin/rust-analyzer 120$ curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-linux -o ~/.local/bin/rust-analyzer
121$ chmod +x ~/.cargo/bin/rust-analyzer 121$ chmod +x ~/.local/bin/rust-analyzer
122---- 122----
123 123
124Ensure `~/cargo/bin` is listed in the `$PATH` variable.
125
124Alternatively, you can install it from source using the following command: 126Alternatively, you can install it from source using the following command:
125 127
126[source,bash] 128[source,bash]