73f29087f99e2e6630dcc5954db1240e8c885147

Author
Luca S <luca@acul.me>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

installer: replace the current shell with the new ZSH instance

This replaces the currently running process with the new one using `exec`
instead of creating a new process. This way, when the user `exit`s out of
the new shell it will not pop them back into the shell from which ohmyzsh
was installed from.

Diff

 1diff --git a/tools/install.sh b/tools/install.sh
 2index 884080c30487bd0d42c5bc6c3229cacb901e4153..659cd944706c43a16fea11d1f469313a40caf1b6 100755
 3--- a/tools/install.sh
 4+++ b/tools/install.sh
 5@@ -149,7 +149,7 @@ main() {
 6 	EOF
 7 	printf "$NORMAL"
 8 
 9-	env zsh -l
10+	exec zsh -l
11 }
12 
13 main