Add Rust install

This commit is contained in:
flyingscorpio@arch-desktop 2020-03-25 12:30:39 +01:00
parent f987d98e1b
commit 62bec0b469

View file

@ -100,7 +100,6 @@ fi
# Configure Git {{{
echo "Configuring Git..."
git config --global user.name "$USER@$(uname -n)"
git config --global user.email "tfranken@protonmail.com"
git config --global alias.ci "commit"
@ -112,6 +111,24 @@ git config --global alias.br "branch"
# }}}
# Install Rust {{{
echo "Installing Rust..."
if rustc --version; then
echo "${GREEN}Rust is already intalled. Updading...${NC}"
rustup update
else
if curl https://sh.rustup.rs -sSf | sh; then
echo "${GREEN}Successfully installed Rust${NC}"
else
echo "${ORANGE}There was a problem while installing Rust${NC}"
fi
fi
/bin/bash ~/SetupCockpit/separator.sh
# }}}
# Clone bash-git-prompt {{{
if [ -e ~/.bash-git-prompt ]; then