rust, some posix

This commit is contained in:
Adam 2024-01-09 17:18:18 -05:00
parent a74ef07f00
commit db3e2d75f5

View file

@ -20,13 +20,13 @@ if ! type "yay" &> /dev/null; then
cd cd
rm -rf yay rm -rf yay
else else
echo -e "\nYay is already installed, skipping..." printf "\nYay is already installed, skipping..."
fi fi
# Install base shell # Install base shell
if [ $1 -ge 1 ]; then if [ "$1" -ge 1 ]; then
echo -e "\nInstalling base shell..." printf "\nInstalling base shell..."
yay -S --needed --noconfirm \ yay -S --needed --noconfirm \
bat \ bat \
btop \ btop \
@ -42,19 +42,20 @@ if [ $1 -ge 1 ]; then
ripgrep \ ripgrep \
rsync \ rsync \
rubygems \ rubygems \
rustup \
sl \ sl \
unrar \ unrar \
unzip \ unzip \
wget \ wget \
zsh \ zsh \
[ -x "$(command -v rustup)" ] && yay -S --needed --noconfirm rust
fi fi
# Install basic GUI # Install basic GUI
if [ $1 -ge 2 ]; then if [ "$1" -ge 2 ]; then
echo -e "\nInstalling basic GUI..." printf "\nInstalling basic GUI..."
yay -S --needed --noconfirm \ yay -S --needed --noconfirm \
acpi \ acpi \
alacritty \ alacritty \
@ -81,9 +82,9 @@ if [ $1 -ge 2 ]; then
fi fi
# Install extras # Install extras
if [ $1 -ge 3 ]; then if [ "$1" -ge 3 ]; then
echo -e "\nInstalling extras..." printf "\nInstalling extras..."
yay -S --needed --noconfirm \ yay -S --needed --noconfirm \
beautiful-discord-git \ beautiful-discord-git \
caprine \ caprine \
@ -101,10 +102,10 @@ fi
# Set shell # Set shell
echo "" echo ""
if [ $SHELL == "/bin/zsh" ]; then if [ "$SHELL" = "/bin/zsh" ]; then
echo "Shell already set to zsh" echo "Shell already set to zsh"
else else
sudo chsh -s /bin/zsh $USER sudo chsh -s /bin/zsh "$USER"
echo -e "\nLog out and back in for changes to take effect." printf "\nLog out and back in for changes to take effect."
fi fi