Windows¶
Upgrade All¶
Initial Setup¶
Tip
Start Nushell using nu from the default terminal for now. It will be later set as the default shell on WezTerm via dotfiles.
winget install ...[
DesktopPlus.DesktopPlus
Git.Git
jdx.mise
M2Team.NanaZip
Microsoft.PowerShell
Microsoft.PowerToys
Microsoft.VisualStudio.BuildTools
wez.wezterm
ZedIndustries.Zed
]
Dotfiles¶
SSH Setup¶
# :: powershell
# Start in current run (one-time, won't need after restarting once)
Start-Service ssh-agent
# :: powershell
# Use Windows SSH client
if ($sshPath = (Get-Command ssh -ErrorAction SilentlyContinue).Source) { [System.Environment]::SetEnvironmentVariable("GIT_SSH_COMMAND", ($sshPath -replace '\\', '/'), [System.EnvironmentVariableTarget]::User); Write-Host "[ OK ] $sshPath is now the default SSH client" -ForegroundColor Green; Write-Host "NOTE: Restart terminal/apps for changes to take effect." -ForegroundColor Yellow } else { Write-Host "Error: ssh not found" -ForegroundColor Red }
# :: powershell
# Confirm default SSH client after restating terminal/app
[System.Environment]::GetEnvironmentVariable("GIT_SSH_COMMAND", [System.EnvironmentVariableTarget]::User)
Misc¶
Taskbar Apps¶
Abstract
This section is for work computers where IT has applied a auto-set taskbar apps group policy.
- Pin the apps you want and unpin unnecessary apps before starting.
cd "~/AppData/Roaming/Microsoft/Internet Explorer/Quick Launch/User Pinned/TaskBar"- Note the names of the
.lnklinks in this folder. cd ~/AppData/Local/Microsoft/Windows/Shell.- Create
LayoutModification.xmlif it does not exist and use the following template as starting point.
LayoutModification.xml
<?xml version="1.0" encoding="utf-8"?>
<LayoutModificationTemplate
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
Version="1">
<CustomTaskbarLayoutCollection PinListPlacement="Replace">
<defaultlayout:TaskbarLayout>
<taskbar:TaskbarPinList>
<!-- Add your pinned apps here -->
<taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\YOUR-FIRST-APP.lnk" />
<taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\YOUR-SECOND-APP.lnk" />
</taskbar:TaskbarPinList>
</defaultlayout:TaskbarLayout>
</CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>