summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca S <luca@acul.me>2018-07-19 22:12:45 +0200
committerMarc Cornellà <marc.cornella@live.com>2019-06-03 17:18:23 +0200
commit73f29087f99e2e6630dcc5954db1240e8c885147 (patch)
tree1893dcc124a79602dd787a15a82ceb70b033f53d
parent1fdd5351fbea83293c510a4457ada799ae407a8b (diff)
downloadzsh-73f29087f99e2e6630dcc5954db1240e8c885147.tar.gz
zsh-73f29087f99e2e6630dcc5954db1240e8c885147.tar.bz2
zsh-73f29087f99e2e6630dcc5954db1240e8c885147.zip
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.
-rwxr-xr-xtools/install.sh2
1 files changed, 1 insertions, 1 deletions
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