Add .chezmoiscripts/00-aur.sh
This commit is contained in:
parent
b21a473bea
commit
a6a6aca827
1 changed files with 12 additions and 0 deletions
12
.chezmoiscripts/run_once_before_00-aur.sh.tmpl
Normal file
12
.chezmoiscripts/run_once_before_00-aur.sh.tmpl
Normal file
|
@ -0,0 +1,12 @@
|
|||
{{ if (and (eq .chezmoi.osRelease.id "arch") (not lookPath "yay")) -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sudo pacman -S --needed git base-devel
|
||||
git clone https://aur.archlinux.org/yay-bin.git
|
||||
cd yay-bin
|
||||
makepkg -si
|
||||
cd ..
|
||||
rm -rf yay-bin
|
||||
|
||||
yay -Syu
|
||||
{{- end -}}
|
Loading…
Reference in a new issue