mirror of https://github.com/ohmyzsh/ohmyzsh.git
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.pull/5169/head^2
parent
1fdd5351fb
commit
73f29087f9
|
@ -149,7 +149,7 @@ main() {
|
||||||
EOF
|
EOF
|
||||||
printf "$NORMAL"
|
printf "$NORMAL"
|
||||||
|
|
||||||
env zsh -l
|
exec zsh -l
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
Loading…
Reference in New Issue