add linux packages
This commit is contained in:
16
.chezmoiscripts/run_onchange_darwin-install-packages.sh.tmpl
Normal file
16
.chezmoiscripts/run_onchange_darwin-install-packages.sh.tmpl
Normal file
@@ -0,0 +1,16 @@
|
||||
{{ if eq .chezmoi.os "darwin" -}}
|
||||
#!/bin/sh
|
||||
|
||||
# Install Homebrew
|
||||
command -v brew >/dev/null 2>&1 || \
|
||||
(echo '🍺 Installing Homebrew' && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)")
|
||||
|
||||
brew bundle --file=/dev/stdin <<EOF
|
||||
{{ range .packages.darwin.brews -}}
|
||||
brew {{ . | quote }}
|
||||
{{ end -}}
|
||||
{{ range .packages.darwin.casks -}}
|
||||
cask {{ . | quote }}
|
||||
{{ end -}}
|
||||
EOF
|
||||
{{ end -}}
|
||||
19
.chezmoiscripts/run_onchange_linux-install-packages.sh.tmpl
Normal file
19
.chezmoiscripts/run_onchange_linux-install-packages.sh.tmpl
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ if eq .chezmoi.os "linux" -}}
|
||||
|
||||
|
||||
{{ if eq .chezmoi.osRelease.id "manjaro" -}}
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
{{ range .packages.linux.manjaro.pacman -}}
|
||||
sudo pacman -S --needed --noconfirm {{ . | quote }}
|
||||
{{ end -}}
|
||||
|
||||
{{ range .packages.linux.manjaro.aur -}}
|
||||
yay -S --needed --noconfirm {{ . | quote }}
|
||||
{{ end -}}
|
||||
|
||||
{{ end -}}
|
||||
|
||||
|
||||
{{ end -}}
|
||||
Reference in New Issue
Block a user