Files
endeavour_config/scripts/04_setup_languages.sh

27 lines
409 B
Bash
Executable File

#!/bin/bash
installed() {
if command -v "$1" > /dev/null 2>&1 ; then
return 0
fi
return 1
}
# python
if ! installed "python" ; then
sudo pacman -S --noconfirm python python-pip
fi
# node
if ! installed "node" ; then
yay -S --noconfirm nvm
source /usr/share/nvm/init-nvm.sh
nvm install node
fi
if ! installed "cargo" ; then
sudo pacman -S --noconfirm rustup
rustup default stable
fi