Mise à jour de 'installRust.sh'
This commit is contained in:
parent
84dda8c9fd
commit
f7fdb2fb32
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,11 @@
|
|||
which curl &> /dev/null || ( sudo apt update; sudo apt install curl -y ) # Install curl if not already installed
|
||||
|
||||
# Install rust
|
||||
curl https://sh.rustup.rs -sSf | ( sh -s -- -y; source $HOME/.cargo/env )
|
||||
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
|
||||
# Configure current shell
|
||||
source $HOME/.cargo/env
|
||||
|
||||
# If fish is used, adding cargo to path
|
||||
if [ -x $HOME/.config/fish ] ; then
|
||||
fish -c 'set -Up fish_user_paths ~/.cargo/bin'
|
||||
|
|
Reference in a new issue