diff --git a/run_onchange_after_install_main_deps.sh.tmpl b/run_onchange_after_install_main_deps.sh.tmpl index e80412d..ea4874f 100644 --- a/run_onchange_after_install_main_deps.sh.tmpl +++ b/run_onchange_after_install_main_deps.sh.tmpl @@ -6,6 +6,7 @@ ## * MacOS ## * Linux ## * FreeBSD +## * OpenBSD ## ## Supported Linux distros: ## * ubuntu @@ -21,6 +22,8 @@ STEPS=9 {{ else if eq .chezmoi.os "freebsd" -}} STEPS=9 +{{ else if eq .chezmoi.os "openbsd" -}} +STEPS=9 {{ else if eq .chezmoi.osRelease.id "ubuntu" -}} STEPS=14 {{ else if eq .chezmoi.osRelease.id "debian" -}} @@ -193,6 +196,9 @@ new_line "Update caches and upgrade packages" $SUDO pkg update 2>&1|pad +{{ else if eq .chezmoi.os "openbsd" -}} + + $SUDO pkg_add -u 2>&1|pad {{ else if eq .chezmoi.os "darwin" -}} if ! command -v brew >/dev/null 2>&1; then @@ -224,6 +230,10 @@ new_line "Install base packages" $SUDO pkg install --yes $BASE_PACKAGES py39-pipx direnv 2>&1|pad +{{ else if eq .chezmoi.os "openbsd" -}} + + $SUDO pkg_add $BASE_PACKAGES py3-pipx direnv 2>&1|pad + {{ else if eq .chezmoi.os "darwin" -}} brew install -q $BASE_PACKAGES python pipx direnv goku 2>&1|pad @@ -377,6 +387,10 @@ new_line "Install neovim, fish, atuin, jump and the rest" $SUDO pkg install --yes $ACT_PACKAGES neovim fish atuin lazygit fd-find pam_ssh_agent_auth fd 2>&1|pad +{{ else if eq .chezmoi.os "openbsd" -}} + +$SUDO pkg_add neovim fish atuin fd ripgrep unzip htop fzf bat gawk jq nnn tmux mc ngrep mtr gcc 2>&1|pad + {{ else if eq .chezmoi.os "darwin" -}} brew install -q fish neovim $ACT_PACKAGES atuin jump fd sk dust lazygit 2>&1|pad