-
-
Save asapdotid/f8a06fea6cbc7b32d83d389c3acde714 to your computer and use it in GitHub Desktop.
Rust cargo env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # rustup shell setup | |
| # affix colons on either side of $PATH to simplify matching | |
| case ":${PATH}:" in | |
| *:"$HOME/.cargo/bin":*) | |
| ;; | |
| *) | |
| # Prepending path in case a system-installed rustc needs to be overridden | |
| export PATH="$HOME/.cargo/bin:$PATH" | |
| ;; | |
| esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment