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.
This commit is contained in:
parent
d2725d44fc
commit
ee3363f475
@ -110,7 +110,12 @@ main() {
|
|||||||
echo 'p.p.s. Get stickers and t-shirts at http://shop.planetargon.com.'
|
echo 'p.p.s. Get stickers and t-shirts at http://shop.planetargon.com.'
|
||||||
echo ''
|
echo ''
|
||||||
printf "${NORMAL}"
|
printf "${NORMAL}"
|
||||||
|
|
||||||
|
# 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
|
env zsh
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
Loading…
Reference in New Issue
Block a user