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