Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions bootstrap.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,6 @@ function setupShellEnvs {
# & reg add "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /d 0000000000000000020000001D003A0000000000 /t REG_BINARY /f | Out-Null
# Write-Host "CapsLock remapped, will be effective after next system reboot."

# TODO: initialize Terminal, but its .json file won't exist until after the first launch
# $env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json

Write-Host "setting up PowerShell profiles:"
$pscoreProfile = (& pwsh -NoProfile -Command '$PROFILE.CurrentUserAllHosts')
copyFile (Join-Path 'win' 'profile.ps1') $pscoreProfile
Expand Down
14 changes: 13 additions & 1 deletion win/configWinTerm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function winTermConfiguration {

$_s = Get-Content -Path $wtSettingsFile -Encoding utf8 | ConvertFrom-Json

# sigh, PS is weird, need to add non-existing properties to the object before setting them
$_s | Add-Member -MemberType NoteProperty -Force -Name confirmCloseAllTabs -Value $false
$_s | Add-Member -MemberType NoteProperty -Force -Name copyFormatting -Value "none"
$_s | Add-Member -MemberType NoteProperty -Force -Name copyOnSelect -Value $false
Expand All @@ -34,6 +33,19 @@ function winTermConfiguration {
$_s | Add-Member -MemberType NoteProperty -Force -Name useAcrylicInTabRow -Value $true
$_s | Add-Member -MemberType NoteProperty -Force -Name defaultProfile -Value "{574e775e-4f2a-5b96-ac1e-a2962a402336}"

# https://harrymin.dev/posts/fix-terminal-keybindings-csi-u/#calculating-and-sending-csi-u-codes
# https://github.com/neovim/neovim/issues/19575#issuecomment-2888309292
$_csiCtrlSpace = "`u{001b}[32;5u"
$_found = $_s.actions | Where-Object { $_.command.input -eq $_csiCtrlSpace }
if (-not $_found) {
$ctrlSpace = New-Object PSObject
$ctrlSpace | Add-Member -MemberType NoteProperty -Force -Name keys -Value 'ctrl+space'
$ctrlSpace | Add-Member -MemberType NoteProperty -Force -Name command -Value (New-Object PSObject)
$ctrlSpace.command | Add-Member -MemberType NoteProperty -Force -Name action -Value "sendInput"
$ctrlSpace.command | Add-Member -MemberType NoteProperty -Force -Name input -Value $_csiCtrlSpace
$_s.actions += $ctrlSpace
}
Comment thread
davidjenni marked this conversation as resolved.

$_s.profiles.defaults | Add-Member -MemberType NoteProperty -Force -Name adjustIndistinguishableColors -Value "always"
$_s.profiles.defaults | Add-Member -MemberType NoteProperty -Force -Name bellStyle -Value "taskbar"
$_s.profiles.defaults | Add-Member -MemberType NoteProperty -Force -Name cursorShape -Value "vintage"
Expand Down
329 changes: 0 additions & 329 deletions win/settings.json

This file was deleted.

Loading