diff options
author | June McEnroe <june@causal.agency> | 2018-08-26 02:05:55 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-08-26 02:05:55 -0400 |
commit | dd3b42bc1365d16b9e4306e2639d49a3617797af (patch) | |
tree | 6ad0994ae9fe5f17237b65a403e23fd47c24a7d3 | |
parent | Show hostname in title over SSH (diff) | |
download | src-dd3b42bc1365d16b9e4306e2639d49a3617797af.tar.gz src-dd3b42bc1365d16b9e4306e2639d49a3617797af.zip |
Add NetBSD to install.sh
-rwxr-xr-x | install.sh | 19 |
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 |