Skip to content

Instantly share code, notes, and snippets.

@ctarx
Created September 23, 2022 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctarx/171f0565aff78e5c3b4271b1797899b1 to your computer and use it in GitHub Desktop.
Save ctarx/171f0565aff78e5c3b4271b1797899b1 to your computer and use it in GitHub Desktop.
cargo env
#!/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