diff options
author | Günter Zöchbauer <[email protected]> | 2020-04-26 16:11:44 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-26 16:11:44 +0100 |
commit | 5df4a79951cde6eb84873ee239598993d0b6858f (patch) | |
tree | d74f7bd3dfdb203f943fd9df27a98c8b54dd053e | |
parent | 482e912fa0b1df03c6ad99c1d92a894889811e00 (diff) |
Change install directory suggestion to `~/.local/bin`
instead of `~/.cargo/bin`
-rw-r--r-- | docs/user/readme.adoc | 8 |
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: | |||
113 | Other editors generally require the `rust-analyzer` binary to be in `$PATH`. | 113 | Other editors generally require the `rust-analyzer` binary to be in `$PATH`. |
114 | 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`. | 114 | 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`. |
115 | 115 | ||
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 |
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 | ||
124 | Ensure `~/cargo/bin` is listed in the `$PATH` variable. | ||
125 | |||
124 | Alternatively, you can install it from source using the following command: | 126 | Alternatively, you can install it from source using the following command: |
125 | 127 | ||
126 | [source,bash] | 128 | [source,bash] |