You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ability to specify the closeOnExit behavior would be even more useful if it could be specified on the command line. It would then not be limited to profiles and could even be used to override a profile's setting.
Taking a cue from CMD's /C and /K, you might use -c (close the tab/pane) and -k (keep the tab/pane)
Git uses -c name=value for overriding configuration files. Windows Terminal could perhaps support -c closeOnExit=graceful likewise. However, it might lead to ambiguity if some setting allows both the Boolean true and the string "true" in JSON. Also, it would be more tedious to type than a dedicated option (especially if the name is case-sensitive), although that would matter less in scripting.
Activity
KalleOlaviNiemitalo commentedon May 3, 2021
Git uses -c name=value for overriding configuration files. Windows Terminal could perhaps support
-c closeOnExit=gracefullikewise. However, it might lead to ambiguity if some setting allows both the Booleantrueand the string"true"in JSON. Also, it would be more tedious to type than a dedicated option (especially if the name is case-sensitive), although that would matter less in scripting.zadjii-msft commentedon May 3, 2021
Yea, sure we can toss this on the backlog.
Sure starting to seem like we should have commandline switches for everything in a profile 😄