From 630fabc32b5b9a59738bae4cb05d43bc33b04043 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 10 Jun 2017 22:58:52 -0400 Subject: Add untested install script --- install.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 00000000..8b9df7c8 --- /dev/null +++ b/install.sh @@ -0,0 +1,28 @@ +#!/bin/sh +set -eu + +common=gdb git gnupg htop the_silver_searcher tmux tree + +macos() { + homebrew=https://raw.githubusercontent.com/Homebrew/install/master/install + xcode-select --install || true + [ ! -f /usr/local/bin/brew ] && ruby -e "`curl -fsSL $homebrew`" + brew install $common + brew install neovim/neovim/neovim openssh + brew cask install iterm2 +} + +freebsd() { + pkg install $common + pkg install curl neovim sudo zsh +} + +arch() { + pacman -Sy --needed base-devel + pacman -Sy --needed $common + pacman -Sy --needed neovim openssh zsh +} + +[ "`uname`" = 'Darwin' ] && exec macos +[ -f /usr/local/sbin/pkg ] && exec freebsd +[ -f /usr/bin/pacman ] && exec arch -- cgit 1.4.1