add OpenBSD support to installer
Uses pkg_add for package management with doas (default on OpenBSD). Packages available natively: fish, neovim, atuin, fd, ripgrep, bat, fzf, htop, jq, nnn, tmux, mc, ngrep, mtr, gcc, direnv, py3-pipx. Not available: lazygit, nethogs, jump, skim, dust. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5c032ce1b9
commit
748de2400d
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user