summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-06-10 22:58:52 -0400
committerJune McEnroe <june@causal.agency>2017-06-10 22:58:52 -0400
commit630fabc32b5b9a59738bae4cb05d43bc33b04043 (patch)
tree3bb198ec4c885de6ac62cbd6c8f8629e35552c25
parentAdd .hushlogin (diff)
downloadsrc-630fabc32b5b9a59738bae4cb05d43bc33b04043.tar.gz
src-630fabc32b5b9a59738bae4cb05d43bc33b04043.zip
Add untested install script
Diffstat (limited to '')
-rwxr-xr-xinstall.sh28
1 files changed, 28 insertions, 0 deletions
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