Debugging Zsh startupEdit
I recently had to debug some breakage in my Zsh set-up where my $PATH was getting clobbered but I didn’t know where from. Stack Overflow to the rescue:
zsh -xl
This simulates a login shell (-l/--login) and dumps debug info (-x/--xtrace) about everything that it’s doing along the way.