Skip to content

Commit

Permalink
Update setup_windows.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineDjeghri authored Feb 21, 2024
1 parent e12f6ac commit ef7bb00
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions docs/windows_workflow/setup_windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -203,18 +203,22 @@ function Install-FiraCode-Font {
# Specify the path to your settings file
$settingsFilePath = "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json"

# Specify the path to your settings file
$settingsFilePath = "$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json"

# Read the content of the settings file
$settingsContent = Get-Content -Path $settingsFilePath -Raw | ConvertFrom-Json

# Update the default settings
$settingsContent.defaults.colorScheme = "Night Owl"
$settingsContent.defaults.elevate = $true
$settingsContent.defaults.font.face = "FiraCode Nerd Font"
$settingsContent.defaults.font.size = 12.0
$settingsContent.defaults.opacity = 90
# Update the default profile settings
$settingsContent.profiles.defaults.colorScheme = "Night Owl"
$settingsContent.profiles.defaults.elevate = $true
$settingsContent.profiles.defaults.font.face = "FiraCode Nerd Font"
$settingsContent.profiles.defaults.font.size = 12.0
$settingsContent.profiles.defaults.opacity = 90

# Convert back to JSON and save the updated settings
$settingsContent | ConvertTo-Json | Set-Content -Path $settingsFilePath


Write-Host "Windows Terminal settings updated successfully."

Expand Down

0 comments on commit ef7bb00

Please sign in to comment.