mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
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.
This commit is contained in:
parent
1fdd5351fb
commit
73f29087f9
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ main() {
|
|||
EOF
|
||||
printf "$NORMAL"
|
||||
|
||||
env zsh -l
|
||||
exec zsh -l
|
||||
}
|
||||
|
||||
main
|
||||
|
|
Loading…
Reference in a new issue