Skip to content

Commit 5df4a79

Browse files
authored
Change install directory suggestion to ~/.local/bin
instead of `~/.cargo/bin`
1 parent 482e912 commit 5df4a79

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/user/readme.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,16 @@ Here are some useful self-diagnostic commands:
113113
Other editors generally require the `rust-analyzer` binary to be in `$PATH`.
114114
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`.
115115

116-
On Linux to install the `rust-analyzer` binary into `~/.cargo/bin` which usually is already added to `$PATH`, this commands could be used
116+
On Linux to install the `rust-analyzer` binary into `~/.local/bin`, this commands could be used
117117

118118
[source,bash]
119119
----
120-
$ curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/rust-analyzer-linux -o ~/.cargo/bin/rust-analyzer
121-
$ chmod +x ~/.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 ~/.local/bin/rust-analyzer
122122
----
123123

124+
Ensure `~/cargo/bin` is listed in the `$PATH` variable.
125+
124126
Alternatively, you can install it from source using the following command:
125127

126128
[source,bash]

0 commit comments

Comments
 (0)