Add Rust install
This commit is contained in:
parent
f987d98e1b
commit
62bec0b469
1 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue