summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh19
1 files changed, 15 insertions, 4 deletions
diff --git a/install.sh b/install.sh
index 66a9f324..b594f608 100755
--- a/install.sh
+++ b/install.sh
@@ -1,10 +1,11 @@
 #!/bin/sh
 set -e -u
 
-any='gnupg htop mksh neovim sl the_silver_searcher tree'
-brew="$any ddate git openssh"
-pkg="$any curl ddate sudo"
-pacman="$any base-devel ctags gdb openssh"
+any='gnupg htop mksh sl the_silver_searcher tree'
+brew="$any ddate git neovim openssh"
+pkg="$any curl ddate neovim sudo"
+pkgin="$any curl sudo vim"
+pacman="$any base-devel ctags gdb neovim openssh"
 
 homebrew='https://raw.githubusercontent.com/Homebrew/install/master/install'
 if [ "$(uname)" = 'Darwin' ]; then
@@ -18,4 +19,14 @@ if [ "$(uname)" = 'Darwin' ]; then
 fi
 
 [ -f /usr/local/sbin/pkg ] && exec pkg install $pkg
+
+if [ "$(uname)" = 'NetBSD' ]; then
+	export PKG_PATH="ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r)/All"
+	pkg_add pkgin
+	echo "$PKG_PATH" > /usr/pkg/etc/pkgin/repositories.conf
+	pkgin update
+	pkgin install $pkgin
+	exit
+fi
+
 [ -f /usr/bin/pacman ] && pacman -Sy && exec pacman -S --needed $pacman
class='logheader'>2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe Absolutely indiscriminately. 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe For some reason I haven't been able to figure out, trying to poll /dev/tty returns POLLNVAL (and this was using 100% CPU looping), but using stderr instead works fine. 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe