Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pcgeek86/terminal
Automate the Microsoft Windows Terminal using PowerShell
https://github.com/pcgeek86/terminal
microsoft powershell terminal windows
Last synced: 3 months ago
JSON representation
Automate the Microsoft Windows Terminal using PowerShell
- Host: GitHub
- URL: https://github.com/pcgeek86/terminal
- Owner: pcgeek86
- License: mit
- Created: 2020-08-11T21:07:23.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T18:01:23.000Z (about 4 years ago)
- Last Synced: 2024-05-18T05:36:09.127Z (6 months ago)
- Topics: microsoft, powershell, terminal, windows
- Language: PowerShell
- Homepage: https://trevorsullivan.net
- Size: 24.4 KB
- Stars: 10
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - pcgeek86/terminal - Automate the Microsoft Windows Terminal using PowerShell (PowerShell)
README
## Objective
This PowerShell module makes it possible to automate configuration of the Windows Terminal.
## Installation
To install the module, launch a PowerShell session and run the following command.
```powershell
Install-Module -Name Terminal -Scope CurrentUser -Force
```## Usage
To set the color scheme of a Windows Terminal profile, use the following command from a Windows Terminal session.
```powershell
Set-TerminalColorScheme -Name Argonaut
```To set the color scheme of a Windows Terminal _Preview_ profile, use the following command from a Windows Terminal Preview session.
```powershell
Set-TerminalColorScheme -Preview -Name Andromeda
```If you are _not_ running `Set-TerminalColorScheme` from a Windows Terminal session, then you can use the following command to configure the color scheme for a specific profile ID. This is useful if you want to run a script in Visual Studio Code, for example, which is unaware of the Windows Terminal profile ID.
```powershell
Set-TerminalColorScheme -Name Andromeda -ProfileId '{profile-id-guid-goes-here}'
```**NOTE**: You must specify one of the built-in color schemes, or the name of a custom color scheme that is defined in your Windows Terminal `settings.json` file.
Copyright 2020 Trevor Sullivan