Automatic profile switching based on &job variable, like example &emacs doesn't work
- iTerm2 version: Build 3.4.1
- OS version: 10.15.7 (19H2)
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog
- Attach a screen capture video if it would make the reproduction steps clearer.
- Are you reporting a performance issue, excessive CPU usage, or a hang? No
- Are you reporting a crash? No
- Are you reporting excessive memory usage? No
PLEASE ATTACH YOUR PLIST FILE FOR BUG REPORTS! Seriously! I'll probably ask you for it if you don’t.
Alright, here you go.
Detailed steps to reproduce the problem:
- Setup a new secondary profile, go into advanced, and marvel at Automatic Profile Switching.
- Install shell integration
- Set up a rule based on &job, just like in the example https://iterm2.com/documentation-automatic-profile-switching.html. Use "&emacs" as the rule, like in that example.
- Doesn't work, when enabling the logs, it shows that the "job" is always "zsh"
- Test again with a new rule based on "/path". Works fine.
What happened: It didn't work.
What should have happened: It should have changed my profile to the secondary profile when I started emacs on the shell. But it did work when I used rule 5. Only problem is that's not the rule I'm looking for. I want to change profile when I'm running the "emacs" program.
Also: Great program.