diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2021-02-08 21:42:09 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2021-02-08 21:42:09 +0100 |
| commit | 4914d7fc7626fff2d96d2cc4f01677cb04ea013d (patch) | |
| tree | d24ec85f8a86d82073365934d89a8bf2e6b9bef7 /install.sh | |
| parent | a510034216ce37ac0f82afabe77c38aa058cc3fb (diff) | |
.
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -6,11 +6,17 @@ symlink () { ln -sfT "$@" } +install_packages() { + yay -S --needed --noconfirm \ + $(cat $1 | \ + xargs -I{} sh -c \ + "(pacman -Q {} &> /dev/null) || echo {}") +} + mkdir -p ~/bin symlink $(cd $(dirname "$0"); pwd -P) ~/.dotfiles - -# yay -~/.dotfiles/yay/install.sh +yay --save --sudo doas +install_packages ~/.dotfiles/packages.txt # alacritty symlink ~/.dotfiles/alacritty ~/.config/alacritty |
