Profile start and end commands #9116

Open
opened 2026-01-31 01:46:27 +00:00 by claunia · 0 comments
Owner

Originally created by @jthoward64 on GitHub (Jun 18, 2020).

Description of the new feature

In my case it's starting/ending a headless virtual machine before ssh-ing into it, but there are a number of cases where opening a particular profile can have prerequisite commands before being useful. I suggest that new profile options be added to automate running a command when a profile is opened and when that profile is closed. An additional suggestion would be a setting to determine if these commands are run per tab or per profile, otherwise a field for each.

Proposed technical implementation details

  1. The user opens windows terminal
  2. The user opens a profile with all of these options set
  3. Once the profile is opened the on-open command(s) are automatically run (à la .bashrc)
  4. The user opens another tab and if the user has set per-tab commands, windows terminal runs those
  5. The user closes these tabs and the on-close command(s) are run.
Originally created by @jthoward64 on GitHub (Jun 18, 2020). # Description of the new feature In my case it's starting/ending a headless virtual machine before ssh-ing into it, but there are a number of cases where opening a particular profile can have prerequisite commands before being useful. I suggest that new profile options be added to automate running a command when a profile is opened and when that profile is closed. An additional suggestion would be a setting to determine if these commands are run per tab or per profile, otherwise a field for each. # Proposed technical implementation details 1. The user opens windows terminal 2. The user opens a profile with all of these options set 3. Once the profile is opened the on-open command(s) are automatically run (à la .bashrc) 4. The user opens another tab and if the user has set per-tab commands, windows terminal runs those 5. The user closes these tabs and the on-close command(s) are run.
claunia added the Issue-QuestionNeeds-Tag-FixResolution-Answered labels 2026-01-31 01:46:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#9116