Mise à jour de 'installRust.sh'

This commit is contained in:
Anri 2021-11-14 22:40:45 +01:00
parent 84dda8c9fd
commit f7fdb2fb32

View file

@ -1,7 +1,11 @@
which curl &> /dev/null || ( sudo apt update; sudo apt install curl -y ) # Install curl if not already installed which curl &> /dev/null || ( sudo apt update; sudo apt install curl -y ) # Install curl if not already installed
# Install rust # 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 fish is used, adding cargo to path
if [ -x $HOME/.config/fish ] ; then if [ -x $HOME/.config/fish ] ; then
fish -c 'set -Up fish_user_paths ~/.cargo/bin' fish -c 'set -Up fish_user_paths ~/.cargo/bin'