Added setup script
This commit is contained in:
22
packages.txt
Normal file
22
packages.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
arrpc
|
||||
btop
|
||||
eza
|
||||
fastfetch
|
||||
fuzzel
|
||||
fzf
|
||||
ghostty
|
||||
git
|
||||
hyfetch
|
||||
ncdu
|
||||
neovim
|
||||
oh-my-posh
|
||||
otf-linja-pona
|
||||
power-profiles-daemon
|
||||
reflector
|
||||
tealdeer
|
||||
reflector
|
||||
ttf-sourcecodepro-nerd
|
||||
vim
|
||||
wl-clipboard
|
||||
zoxide
|
||||
zsh
|
||||
31
setup.sh
Executable file
31
setup.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if ! command -v paru &>/dev/null; then
|
||||
echo "Installing paru"
|
||||
sudo pacman -S base-devel git --needed --noconfirm
|
||||
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
|
||||
git clone https://aur.archlinux.org/paru-bin.git $TEMP_DIR/paru-bin
|
||||
cd $TEMP_DIR/paru-bin
|
||||
|
||||
makepkg -si --noconfirm
|
||||
fi
|
||||
|
||||
echo "Installing packages"
|
||||
sudo -v
|
||||
paru -S --noconfirm --needed - <$HOME/.dotfiles/packages.txt
|
||||
|
||||
echo "Changing default shell"
|
||||
sudo chsh -s /bin/zsh $USER
|
||||
|
||||
echo "Setting default git branch to \"main\""
|
||||
git config --global init.defaultBranch main
|
||||
|
||||
echo "Applying arrpc fix"
|
||||
sudo cp /usr/lib/systemd/user/arrpc.service /etc/systemd/system/arrpc.service
|
||||
sudo systemctl enable arrpc --now
|
||||
|
||||
echo "Applying stow"
|
||||
cd $HOME/.dotfiles
|
||||
stow fastfetch fuzzel ghostty godot hyfetch mangohud niri nvim oh-my-posh waybar wofi zsh
|
||||
Reference in New Issue
Block a user