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

前端 未结 6 2422
闹比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 17:05

    Have you tried editing the shell entry in account settings.

    Go to the Accounts preferences, unlock, and right-click on your user account for the Advanced Settings dialog. Your shell should be /bin/zsh, and you can edit that invocation appropriately (i.e. add the --login argument).

提交回复
热议问题