dimanche 8 mars 2015

iTerm2 runs my .zshrc twice


When starting a terminal in iTerm 2, my .zshrc is executed twice. Possibly has something to do with the "last login" printed at the top of terminal by iTerm? Anyone know how to fix this?


Example output, new terminal:



last login: Wed Mar 4 12:55:35 on ttys000

The mark of a good party is that you wake up the next morning wanting to
change your name and start a new life in different city.
-- Vance Bourjaily, "Esquire"

You never know what is enough until you know what is more than enough.
-- William Blake

~ ❯❯❯ zsh

Oh, love is real enough, you will find it some day, but it has one
arch-enemy -- and that is life.
-- Jean Anouilh, "Ardele"

~ ❯❯❯

As you can see, when opening iTerm fortune (in my .zshrc) is executed twice, but when starting a new shell with the terminal already open it is correctly ran once. Any way to fix this behavior?





Aucun commentaire:

Enregistrer un commentaire