You can just use exec to replace your current shell with a new shell: Switch to bash: exec bash Switch to zsh: exec zsh