Conditional settings - i.e. different colors when Administrator #3246
Labels
Area-Settings
Issues related to settings and customizability, for console or terminal
Issue-Feature
Complex enough to require an in depth planning process and actual budgeted, scheduled work.
Product-Terminal
The new Windows Terminal.
Milestone
Description of the new feature/enhancement
As a user, it would be nice to be able to specify different color schemes based on some conditions.
For decades (ever since an errant recursive remove command executed as root) I have used light cyan on dark blue for normal command windows and bright white on red when I am operating as root or Administrator just to remind myself to be extra careful.
Proposed technical implementation details (optional)
This notion could be generalized as conditional profiles (or conditional attributes within a profile) to be applied when a specified expression evaluates to true. Conditional profiles (and/or attributes) would be guaranteed to be applied after all unconditional ones so they would override any default specifications, thus eliminating the need to add "else" or inverted duplicate conditionals. Order of evaluation/application of conditionals would be undefined (or, if you really want to get wild, they could be prioritized then undefined ordering among equal priorities).
When invoked as Administrator, any profile or attribute that was tagged as conditional based on having Administrator access would be applied; otherwise not. In my use case, any window I opened as me would be pleasantly colored while any window opened as Administrator would be "remember you're ROOT, stupid!" colored.
The text was updated successfully, but these errors were encountered: