diff options
author | June McEnroe <june@causal.agency> | 2018-08-16 18:10:42 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-08-16 18:10:42 -0400 |
commit | 079f68b41957cf43e5bf2a7c4422522877832064 (patch) | |
tree | 17d959cbea1aa670edb20582cb7eb7ebed952e06 | |
parent | Port all scripts to sh (diff) | |
download | src-079f68b41957cf43e5bf2a7c4422522877832064.tar.gz src-079f68b41957cf43e5bf2a7c4422522877832064.zip |
Install mksh rather than zsh
Diffstat (limited to '')
-rwxr-xr-x | install.sh | 12 |
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 |