Feature Request - Running commands every new instance(s) #4559

Closed
opened 2026-01-30 23:50:39 +00:00 by claunia · 3 comments
Owner

Originally created by @ghost on GitHub (Oct 20, 2019).

Description of the new feature/enhancement

Ability to specify a list of command(s) to be ran upon opening a new terminal. This would be extremely useful if users wanted to configure their terminal upon opening a new tab, for example, I would like that once I open a new CMD instance it would go to a specific directory (cd ...).

It's obvious there may need to be different lists for different terminals.

Originally created by @ghost on GitHub (Oct 20, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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! --> # Description of the new feature/enhancement Ability to specify a list of command(s) to be ran upon opening a new terminal. This would be extremely useful if users wanted to configure their terminal upon opening a new tab, for example, I would like that once I open a new CMD instance it would go to a specific directory (cd ...). It's obvious there may need to be different lists for different terminals. <!-- 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). -->
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-Fix labels 2026-01-30 23:50:39 +00:00
Author
Owner

@Biswa96 commented on GitHub (Oct 20, 2019):

Try this command line cmd.exe /k cd /d "C:\path\to\folder". The /k option carries out the command but remains the Command Prompt window.

@Biswa96 commented on GitHub (Oct 20, 2019): Try this command line `cmd.exe /k cd /d "C:\path\to\folder"`. The `/k` option carries out the command but remains the Command Prompt window.
Author
Owner

@ghost commented on GitHub (Oct 20, 2019):

@Biswa96 That's a great idea, seems to work just fine. I guess power users would see this as a given as well.

@ghost commented on GitHub (Oct 20, 2019): @Biswa96 That's a great idea, seems to work just fine. I guess power users would see this as a given as well.
Author
Owner

@oising commented on GitHub (Oct 21, 2019):

@cloudrex -- I'm closing this as your question/need appears to be answered.

@oising commented on GitHub (Oct 21, 2019): @cloudrex -- I'm closing this as your question/need appears to be answered.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4559