summary refs log tree commit diff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100644
index 00000000..11269fb7
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+set -eu
+
+X=
+while getopts 'X' opt; do
+	case "$opt" in
+		(X) X=1;;
+		(?) exit 1;;
+	esac
+done
+
+packages='curl htop sl the_silver_searcher tree'
+
+FreeBSD() {
+	pkg install ddate $packages
+}
+
+OpenBSD() {
+	pkg_add $packages
+	if test $X; then
+		pkg_add firefox go-fonts imv scrot sct w3m-- xcursor-dmz xsel
+	fi
+}
+
+Linux() {
+	packages=$(
+		echo $packages | sed 's/the_silver_searcher/silversearcher-ag/'
+	)
+	apt-get install bc build-essential exuberant-ctags gdb nvi $packages
+}
+
+Darwin() {
+	packages=$(echo $packages | sed 's/the_silver_searcher/ag/')
+	cd git/jorts
+	git pull
+	./Install git mandoc nvi $packages
+}
+
+$(uname)