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 | a67f7248523ec4667f43edef7b93837efffbdadc (patch) | |
tree | f693441daa82f46b77c64a5f028d38af4d0d7c53 | |
parent | Show hostname in title over SSH (diff) | |
download | src-a67f7248523ec4667f43edef7b93837efffbdadc.tar.gz src-a67f7248523ec4667f43edef7b93837efffbdadc.zip |
Add NetBSD to install.sh
Diffstat (limited to '')
-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 |