summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-16 18:10:42 -0400
committerJune McEnroe <june@causal.agency>2018-08-16 18:10:42 -0400
commit31e697c1ca8e523dd4a83ae16782b8d7e7190ace (patch)
tree9a6d039da9b604daa73cfca57f984d512965d5fe
parentPort all scripts to sh (diff)
downloadsrc-31e697c1ca8e523dd4a83ae16782b8d7e7190ace.tar.gz
src-31e697c1ca8e523dd4a83ae16782b8d7e7190ace.zip
Install mksh rather than zsh
Diffstat (limited to '')
-rwxr-xr-xinstall.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/install.sh b/install.sh
index d62ffa3e..66a9f324 100755
--- a/install.sh
+++ b/install.sh
@@ -1,16 +1,20 @@
 #!/bin/sh
 set -e -u
 
-any='gnupg htop neovim sl the_silver_searcher tree'
+any='gnupg htop mksh neovim sl the_silver_searcher tree'
 brew="$any ddate git openssh"
-pkg="$any curl ddate sudo zsh"
-pacman="$any base-devel ctags gdb openssh zsh"
+pkg="$any curl ddate sudo"
+pacman="$any base-devel ctags gdb openssh"
 
 homebrew='https://raw.githubusercontent.com/Homebrew/install/master/install'
 if [ "$(uname)" = 'Darwin' ]; then
 	xcode-select --install || true
 	[ -f /usr/local/bin/brew ] || ruby -e "$(curl -fsSL "$homebrew")"
-	exec brew install $brew
+	brew install $brew || true
+	if ! grep -q 'mksh' /etc/shells; then
+		echo '/usr/local/bin/mksh' | sudo tee -a /etc/shells > /dev/null
+	fi
+	exit
 fi
 
 [ -f /usr/local/sbin/pkg ] && exec pkg install $pkg