How to make zsh run as a login shell on Mac OS X (in iTerm)?

前端 未结 6 2416
闹比i
闹比i 2020-12-22 16:23

When zsh is set as a login shell on Mac OS X, when it is started by iTerm, zsh doesn\'t consider that it\'s being run as a login shell, although it\'s started as ‘-zsh’ (‘-’

6条回答
  •  长情又很酷
    2020-12-22 16:54

    chsh -s $(which zsh)
    

    You'll be prompted for your password, but once you update your settings any new iTerm/Terminal sessions you start on that machine will default to zsh.

提交回复
热议问题