Inheritance of triggers between profiles
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.1.5
- Cannot use shell integration (Production environments) Hi guys, very good tool that I am discovering Just spent an hour trying to understand why the profile switching back did not work. I understood finally that the triggers in the latest profile only count and are taken in consideration hence that the Report user, host and directory must be present in the latest profile.
I therefore suggest an evolution to inherit triggers in the stack of profiles kept so that when you exit a session and the prompt changes back the triggers of the previous profile trigger the reporting of user, host and directory.
I know that I have to duplicate in the upper profile the triggers, but this is not convenient as I have multiple prompt syntaxes and multiple profiles origin to the same environment
Say I have 3 environments A- Environment with prompt user@machine path> B- Environment with prompt machine (user) path$ C- Environment with prompt user@machine[path]>
A has its own profile Pa, B has its own profile Pb and C has Pc If my connection flow is: localhost->A->C, profiles should go to default->Pa->Pc localhost->B->C, profiles should go to default->Pb->Pc
All this without having to write the triggers of Pa and Pb in Pc
Food for thoughts.