summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-06-07 14:34:29 -0400
committerJune McEnroe <june@causal.agency>2020-06-07 14:34:29 -0400
commit86702e39cb0af987b4d60c197460666cab260469 (patch)
tree6919adf04881ba732f14acff8885bc0b2845790c
parentAdd The Song of Achilles (diff)
downloadsrc-86702e39cb0af987b4d60c197460666cab260469.tar.gz
src-86702e39cb0af987b4d60c197460666cab260469.zip
Add OpenBSD to install.sh
Straightforward.
-rw-r--r--install.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/install.sh b/install.sh
index c58ef9e3..55e071fa 100644
--- a/install.sh
+++ b/install.sh
@@ -4,12 +4,12 @@ set -eu
 pkgAny='curl htop sl the_silver_searcher tree'
 pkgDarwin="${pkgAny}"
 pkgFreeBSD="${pkgAny} ddate neovim"
-pkgNetBSD="${pkgAny} vim"
 pkgLinux="${pkgAny} bc ctags gdb neovim openssh"
+pkgNetBSD="${pkgAny} vim"
+pkgOpenBSD="${pkgAny} neovim"
 
 pkgsrcTag='20171103'
 neovimTag='v0.4.3'
-
 Darwin() {
 	xcode-select --install || true
 	if [ ! -d /opt/pkg ]; then
@@ -36,6 +36,10 @@ FreeBSD() {
 	pkg install $pkgFreeBSD
 }
 
+Linux() {
+	pacman -Sy --needed $pkgLinux
+}
+
 NetBSD() {
 	if [ ! -f /usr/pkg/bin/pkgin ]; then
 		base="ftp://ftp.NetBSD.org/pub/pkgsrc/packages"
@@ -47,8 +51,8 @@ NetBSD() {
 	pkgin install $pkgNetBSD
 }
 
-Linux() {
-	pacman -Sy --needed $pkgLinux
+OpenBSD() {
+	pkg_add $pkgOpenBSD
 }
 
 $(uname)