Mise à jour de 'installRust.sh'

This commit is contained in:
Anri 2021-11-14 22:20:42 +01:00
parent 0ad78fd38e
commit 84dda8c9fd

View file

@ -1,8 +1,7 @@
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; 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'