restart terminal without closing code example Example 1: restart terminal without closing exec zsh -l Example 2: restart terminal without closing exec bash -l