Skip to content

Pass a command line argument to the new terminal window that is about to be launched? #17521

Closed Answered by DHowett
RalfReddings asked this question in Q&A
Discussion options

You must be logged in to vote

Alas, this is one of the weird parts of Profiles as implemented in Terminal today.

The commandline passed on the command line (hah) is taken wholesale, and used to override the commandline of the profile you specify.

Right now, that means you need to do this:

wt -p my_profile my_shell -c get-childitem

There's an issue somewhere tracking changing (or clarifying, or extending?) this behavior, but I can't find it at the moment.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RalfReddings
Comment options

@DHowett
Comment options

Answer selected by RalfReddings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants