Make iTerm2 Launch With Zsh

I searched for iTerm2 settings, but I cannot find a way to start Zsh instead of Bash, does anyone know the correct way to do this inside iTerm2?

I ask about this because I came from Mac Terminal, and it easily allows you to choose what to start at startup, but I can not find something direct with iTerm2.

I searched google for it, but for some reason I can only find oh-my-zsh links, nothing related to unmodified iTerm2.

I appreciate any help you can provide, thanks. :)

+62
zsh iterm2
Nov 20
source share
4 answers

Change the default shell to / bin / zsh by running the command chsh -s/bin/zsh .

+117
Nov 20
source share
β€” -

Although the change using chsh -s $(which zsh) worked fine for me, iTMP2 did not automatically open new terminals with zsh.

Instead, I went to iTerm2 -> Preferences -> Profiles -> Default , and on the General tab, set the command /usr/local/bin/zsh instead of the Login shell .

Update: With the current version of iTerm (starting from version 2.1.1), it worked perfectly for me, only changing the default shell (shown above).

+42
Jul 28 '14 at 8:43
source share

As above, the answer is: Editing my zsh profile, which I created on the General tab, in the "Send text at startup:" field, I have "clear; pwd; ls; zsh;" this leaves me with a window showing me what i want to see and finally start zsh.

+3
May 11 '16 at 19:35
source share

I have a simple video when I set it up. Share it here if it helps anyone who is struggling to set it up https://www.youtube.com/watch?v=Z-FsHufELyo

0
Jan 17 '19 at 5:23
source share



All Articles