initial freebsd support
This commit is contained in:
parent
791a621d67
commit
e5db0e46cc
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#Config
|
#Config
|
||||||
STEPS=15
|
STEPS=14
|
||||||
PAD_LEN=4
|
PAD_LEN=4
|
||||||
|
|
||||||
BASE_PACKAGES="gnupg curl wget git"
|
BASE_PACKAGES="gnupg curl wget git"
|
||||||
@ -114,8 +114,9 @@ LINES=$(tput lines)
|
|||||||
print_block
|
print_block
|
||||||
|
|
||||||
new_line "Update caches and upgrade packages"
|
new_line "Update caches and upgrade packages"
|
||||||
|
{{ if eq .chezmoi.os "freebsd" }}
|
||||||
{{ if eq .chezmoi.os "darwin" -}}
|
sudo pkg update
|
||||||
|
{{ else if eq .chezmoi.os "darwin" -}}
|
||||||
if ! type brew; then
|
if ! type brew; then
|
||||||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 2>&1|pad
|
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 2>&1|pad
|
||||||
fi
|
fi
|
||||||
@ -136,7 +137,9 @@ new_line "Update caches and upgrade packages"
|
|||||||
|
|
||||||
new_line "Install base 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
|
brew install -q $BASE_PACKAGES python pipx 2>&1|pad
|
||||||
|
|
||||||
{{ else if eq .chezmoi.osRelease.id "fedora" -}}
|
{{ 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"
|
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" -}}
|
{{ if eq .chezmoi.os "darwin" -}}
|
||||||
brew install -q fish neovim $ACT_PACKAGES atuin jump fd sk dust lazygit 2>&1|pad
|
brew install -q fish neovim $ACT_PACKAGES atuin jump fd sk dust lazygit 2>&1|pad
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user