initial freebsd support

This commit is contained in:
Anton Volnuhin 2024-05-28 01:34:01 +03:00
parent 791a621d67
commit e5db0e46cc

View File

@ -12,7 +12,7 @@
#Config
STEPS=15
STEPS=14
PAD_LEN=4
BASE_PACKAGES="gnupg curl wget git"
@ -114,8 +114,9 @@ LINES=$(tput lines)
print_block
new_line "Update caches and upgrade packages"
{{ if eq .chezmoi.os "darwin" -}}
{{ if eq .chezmoi.os "freebsd" }}
sudo pkg update
{{ else if eq .chezmoi.os "darwin" -}}
if ! type brew; then
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 2>&1|pad
fi
@ -136,7 +137,9 @@ new_line "Update caches and upgrade packages"
new_line "Install base packages"
{{ if eq .chezmoi.os "darwin" -}}
{{ if eq .chezmoi.os "freebsd" }}
sudo pkg install --yes $BASE_PACKAGES
{{ else if eq .chezmoi.os "darwin" -}}
brew install -q $BASE_PACKAGES python pipx 2>&1|pad
{{ else if eq .chezmoi.osRelease.id "fedora" -}}
@ -199,6 +202,11 @@ sudo apt-get update 2>&1|pad
new_line "Install neovim, fish, atuin, jump and the rest"
{{ if eq .chezmoi.os "freebsd" }}
sudo pkg install --yes $ACT_PACKAGES
{{ if eq .chezmoi.os "darwin" -}}
brew install -q fish neovim $ACT_PACKAGES atuin jump fd sk dust lazygit 2>&1|pad