From 73f29087f99e2e6630dcc5954db1240e8c885147 Mon Sep 17 00:00:00 2001 From: Luca S Date: Thu, 19 Jul 2018 22:12:45 +0200 Subject: [PATCH] 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. --- tools/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/install.sh b/tools/install.sh index 884080c30..659cd9447 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -149,7 +149,7 @@ main() { EOF printf "$NORMAL" - env zsh -l + exec zsh -l } main