2

I looks like my iterms terminal is sourcing bash before using zsh and it is doing it multiple times. I can't figure out why.

On the left is the startup from my mac terminal and on the right from items

enter image description here

I have 1 profile on items that runs zsh

enter image description here

Does anyone know why this could happen?

Here is my system info:

macos: 14.6.1
iterms: 3.5.4
zsh: 5.9
omz: master (c68ff8ae)

9
  • 1
    iTerm doesn't source anything. It is a terminal emulator, not a shell. The shell you run inside it sources shell rc files. Terminal.app runs the shell as a login shell by default, iTerm may not be (especially as for some reason you are explicitly specifying what to run), so look at your combination of shell rc files. Commented Aug 31 at 14:54
  • I see several prompts in the iterm screenshot. Did you enter something manually there?
    – nohillside
    Commented Aug 31 at 15:45
  • What is your default shell?
    – mmmmmm
    Commented Aug 31 at 17:46
  • @mmmmmm the default is zsh
    – RSale
    Commented Sep 1 at 19:24
  • @nohillside No I don't. That's part of the problem I want to solve.
    – RSale
    Commented Sep 1 at 19:34

1 Answer 1

2

I would disable iTerm’s “run this command at start” and see the default shell work all by its normal startup.

For us to look over all your OMZ files might be challenging. Is there any reason you don’t uninstall that and test?

Since Apple’s app works, I’m inclined to focus on iterm2 and OMZ as the culprit.

Does the sourcing of bash line in your image show up in the debug log for initialization for either terminal app?

zsh -xvic exit &> ~/omz-debug.$$.log

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .