aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]