Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gpduck/MSTerminalSettings
https://github.com/gpduck/MSTerminalSettings
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/gpduck/MSTerminalSettings
- Owner: gpduck
- License: mit
- Created: 2019-05-16T06:35:33.000Z (over 5 years ago)
- Default Branch: preview
- Last Pushed: 2020-06-17T21:40:45.000Z (over 4 years ago)
- Last Synced: 2024-10-28T10:19:58.225Z (15 days ago)
- Language: PowerShell
- Size: 46.9 MB
- Stars: 118
- Watchers: 3
- Forks: 15
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Description
This module updates the profiles.json file for the new [Microsoft Terminal](https://github.com/microsoft/terminal).
# Installation
The module is available from the [PowerShell Gallery](https://www.powershellgallery.com/packages/MSTerminalSettings) and can be installed using PowerShellGet
```
Install-Module -Name MSTerminalSettings
```I've been developing the module on PowerShell 6 but have been trying to ensure it will also run on Windows PowerShell 5.1.
# Examples
This example downloads the Pandora color scheme from [https://iterm2colorschemes.com/](https://iterm2colorschemes.com/) and sets it as the color scheme for the PowerShell Core terminal profile.
```
Invoke-RestMethod -Uri 'https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/schemes/Pandora.itermcolors' -OutFile .\Pandora.itermcolorsImport-Iterm2ColorScheme -Path .\Pandora.itermcolors -Name Pandora
Get-MSTerminalProfile -Name "PowerShell Core" | Set-MSTerminalProfile -ColorScheme Pandora
```This example creates a new profile for the PowerShell 7 preview using the PowerShell Hero logo.
```
$TerminalFolder = Find-MSTerminalFolder
Invoke-RestMethod -Uri 'https://github.com/PowerShell/PowerShell/raw/master/assets/StoreLogo-Preview.png' -OutFile "$TerminalFolder\StoreLogo-Preview.png"$Pwsh7 = @{
Name = "pwsh7-preview"
CommandLine = 'C:\Program Files\PowerShell\7-preview\pwsh.exe'
Icon = 'ms-appdata:///roaming/StoreLogo-Preview.png'
ColorScheme = 'Campbell'
FontFace = 'Consolas'
StartingDirectory = '%USERPROFILE%'
}
New-MSTerminalProfile @Pwsh7
```This example sets all your profiles to use a [programming font](https://app.programmingfonts.org/). (Note the font must already be installed on your system)
```
Get-MSTerminalProfile | Set-MSTerminalProfile -FontFace "Fira Code Retina"
```