startup commands from command line for wt #10745

Closed
opened 2026-01-31 02:29:12 +00:00 by claunia · 2 comments
Owner

Originally created by @alper-batioglu on GitHub (Sep 24, 2020).

Ability to set startup commands from command line startup.

What I want is to be able to set startup command of the terminal tab/pane from a command line option for wt.
Something like "--startup" option. There is an example of the usage down below.

Proposed technical implementation details

Example is for settings an environmental variable for git bash. Each pane in each tab gets its own prefix group name preceeded by the path. Open wt and 2 split panes with git bash and just execute TITLEPREFIX=G1 in each pane and see for yourself. :)

But basically it is for executing a command initially for each tab/pane.

example usage: (imagine as single line, switched to multiline for readability)
wt -d {PATH1} --startup "TITLEPREFIX={Group1}" ;
split-pane -V -d {PATH2} --startup "TITLEPREFIX={Group1}" ;
split-pane -V -d {PATH3} --startup "TITLEPREFIX={Group1}";
new-tab -d {PATH4} --startup "TITLEPREFIX={Group2}";
split-pane -V -d {PATH5} --startup "TITLEPREFIX={Group2}" ;
new-tab --title web -d {PATH6} --startup "TITLEPREFIX={Group3}";
split-pane -V -d {PATH7} --startup "TITLEPREFIX={Group3}";
new-tab --title mobile -d {PATH8} --startup "TITLEPREFIX={Group4}";
focus-tab -t 0

Originally created by @alper-batioglu on GitHub (Sep 24, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Ability to set startup commands from command line startup. What I want is to be able to set startup command of the terminal tab/pane from a command line option for wt. Something like "--startup" option. There is an example of the usage down below. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details <!-- A clear and concise description of what you want to happen. --> Example is for settings an environmental variable for git bash. Each pane in each tab gets its own prefix group name preceeded by the path. Open wt and 2 split panes with git bash and just execute TITLEPREFIX=G1 in each pane and see for yourself. :) But basically it is for executing a command initially for each tab/pane. **example usage:** (imagine as single line, switched to multiline for readability) wt -d {PATH1} --startup "TITLEPREFIX={Group1}" ; split-pane -V -d {PATH2} --startup "TITLEPREFIX={Group1}" ; split-pane -V -d {PATH3} --startup "TITLEPREFIX={Group1}"; new-tab -d {PATH4} --startup "TITLEPREFIX={Group2}"; split-pane -V -d {PATH5} --startup "TITLEPREFIX={Group2}" ; new-tab --title web -d {PATH6} --startup "TITLEPREFIX={Group3}"; split-pane -V -d {PATH7} --startup "TITLEPREFIX={Group3}"; new-tab --title mobile -d {PATH8} --startup "TITLEPREFIX={Group4}"; focus-tab -t 0
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-31 02:29:12 +00:00
Author
Owner

@skyline75489 commented on GitHub (Sep 24, 2020):

Maybe #6776 ? Or #5528 .

@skyline75489 commented on GitHub (Sep 24, 2020): Maybe #6776 ? Or #5528 .
Author
Owner

@alper-batioglu commented on GitHub (Sep 24, 2020):

yes, seems like #5528

@alper-batioglu commented on GitHub (Sep 24, 2020): yes, seems like #5528
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10745