Add support for --silent option in install.sh script
This allows to skip the execution of the zsh shell at the end of the process. This is to allow scripting of the oh-my-zsh installation.
This commit is contained in:
parent
c3b072eace
commit
fd57a41909
@ -110,7 +110,11 @@ main() {
|
|||||||
echo 'p.p.s. Get stickers and t-shirts at https://shop.planetargon.com.'
|
echo 'p.p.s. Get stickers and t-shirts at https://shop.planetargon.com.'
|
||||||
echo ''
|
echo ''
|
||||||
printf "${NORMAL}"
|
printf "${NORMAL}"
|
||||||
env zsh
|
if [ "$1" == "--silent" ]; then
|
||||||
|
printf "Skipping launch of zsh shell. You can launch it yourself or restart your terminal."
|
||||||
|
else
|
||||||
|
env zsh
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user