check if installed first, add xclip for vim clipboard

This commit is contained in:
2024-04-22 23:05:14 +02:00
parent ed9540aa58
commit d8a0f27fed
3 changed files with 42 additions and 12 deletions

View File

@@ -16,6 +16,8 @@ sudo pacman -S --noconfirm ueberzug # ranger image previewer
# nvim # nvim
sudo pacman -S --noconfirm neovim sudo pacman -S --noconfirm neovim
sudo pacman -S --noconfirm xclip
sudo pacman -S --noconfirm lazygit sudo pacman -S --noconfirm lazygit
# lunarvim # lunarvim

View File

@@ -3,17 +3,32 @@
# GUI Programs # GUI Programs
# run the 02_setup_programs.sh first # run the 02_setup_programs.sh first
installed() {
if command -v "$1" > /dev/null 2>&1 ; then
return 0
fi
return 1
}
# brave # brave
paru -S --noconfirm brave-bin if ! installed "brave" ; then
yay -S --noconfirm brave-bin
fi
# obsidian # obsidian
sudo pacman -S --noconfirm obsidian if ! installed "obsidian" ; then
sudo pacman -S --noconfirm obsidian
fi
# keepassxc # keepassxc
sudo pacman -S --noconfirm keepassxc if ! installed "keepassxc" ; then
sudo pacman -S --noconfirm keepassxc
fi
# syncthing # syncthing
sudo pacman -S --noconfirm syncthing if ! installed "syncthing" ; then
systemctl --user enable syncthing sudo pacman -S --noconfirm syncthing
systemctl --user start syncthing systemctl --user enable syncthing
systemctl --user start syncthing
fi

View File

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