rust, some posix
This commit is contained in:
parent
a74ef07f00
commit
db3e2d75f5
1 changed files with 18 additions and 17 deletions
|
@ -15,18 +15,18 @@ if ! type "yay" &> /dev/null; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git clone https://aur.archlinux.org/yay.git
|
git clone https://aur.archlinux.org/yay.git
|
||||||
cd yay
|
cd yay
|
||||||
makepkg -si --noconfirm
|
makepkg -si --noconfirm
|
||||||
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 \
|
||||||
|
@ -78,12 +79,12 @@ if [ $1 -ge 2 ]; then
|
||||||
xorg-xinit \
|
xorg-xinit \
|
||||||
xorg-xrandr \
|
xorg-xrandr \
|
||||||
|
|
||||||
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 \
|
||||||
|
@ -97,14 +98,14 @@ if [ $1 -ge 3 ]; then
|
||||||
thunderbird \
|
thunderbird \
|
||||||
wal-telegram-git \
|
wal-telegram-git \
|
||||||
|
|
||||||
fi
|
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue