From ee3363f4751f270dd8bcb7749c50197fbb81a5eb Mon Sep 17 00:00:00 2001 From: Alexander Polynomdivision Date: Mon, 6 Feb 2017 20:49:57 +0100 Subject: [PATCH] Add a flag to prevent the "launch" of zsh For me personally, it is very annoying when I install a fresh copy of linux and I run my script to install everything but it gets stuck at the installation of oh-my-zsh because it waits for zsh to exit. Because of that I added the flag "--no-env-zsh", and yes I know that it's a dumb name, to prevent the installer from "starting" zsh if the user specifies the "--no-env-zsh" flag. I didn't find a PR like this or a way to prevent the installer from launching zsh in the script. I also don't know if it's useful for anyone except me. --- tools/install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 3f4de868..0963e620 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -110,7 +110,12 @@ main() { echo 'p.p.s. Get stickers and t-shirts at http://shop.planetargon.com.' echo '' printf "${NORMAL}" - env zsh + + # Check if the user wants to switch into zsh right after the installation + # (! $1 = "--no-env-zsh") + if [ ! $1 = "--no-env-zsh" ]; then + env zsh + fi } main