summary refs log tree commit diff
path: root/install.sh
blob: 09ee21f78d647cf48959afc3643078e310c8f009 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
set -eu

common='gdb gnupg htop sl the_silver_searcher tree'

homebrew=https://raw.githubusercontent.com/Homebrew/install/master/install
macos() {
    xcode-select --install || true
    [ ! -f /usr/local/bin/brew ] && ruby -e "`curl -fsSL $homebrew`"
    brew install $common
    brew install ddate git neovim/neovim/neovim openssh
}

freebsd() {
    pkg install $common
    pkg install curl ddate neovim sudo zsh
}

arch() {
    pacman -Sy
    pacman -S --needed base-devel
    pacman -S --needed $common
    pacman -S --needed neovim openssh zsh
}

[ "$(uname)" = 'Darwin' ] && macos
[ -f /usr/local/sbin/pkg ] && freebsd
[ -f /usr/bin/pacman ] && arch