From 31e697c1ca8e523dd4a83ae16782b8d7e7190ace Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 16 Aug 2018 18:10:42 -0400 Subject: Install mksh rather than zsh --- install.sh | 12 ++++++++---- 1 file 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 -- cgit 1.4.1