From 5bef653fb6bf8ebf2be3047ed3311ff8bd584d50 Mon Sep 17 00:00:00 2001 From: Ravind Kumar Date: Fri, 30 Jun 2017 18:28:59 -0400 Subject: [PATCH] Update instructions to include adding Rust to PATH Current instructions do not include a callout to adding Rust to the PATH. While this included in the installer output and technically happens automatically after login, you can still miss it if you are trying to use Rust right away. --- second-edition/src/ch01-01-installation.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/second-edition/src/ch01-01-installation.md b/second-edition/src/ch01-01-installation.md index 6a6f27240..3babe316f 100644 --- a/second-edition/src/ch01-01-installation.md +++ b/second-edition/src/ch01-01-installation.md @@ -30,6 +30,19 @@ Rust is installed now. Great! Of course, if you disapprove of the `curl | sh` pattern, you can download, inspect and run the script however you like. +The installation script automatically adds Rust to your system PATH after your next login. +If you want to start using Rust right away, run the following command in terminal: + +```text +source $HOME/.cargo/env +``` + +Alternatively, add the following line to your `~/.bash_profile`: + +```text +export PATH="$HOME/.cargo/bin:$PATH" +``` + ### Installing on Windows On Windows, go to [https://rustup.rs](https://rustup.rs/) and