This repository contains my configuration for Windows Terminal. I created this setup because I primarily use WSL on Windows and found the default terminals for WSL, Python, PowerShell, and CMD lacking in usability and appearance.
-
Shells/Profiles
- Uses your default WSL distribution
- Python (within WSL)
- PowerShell
- CMD
-
Keyboard Shortcuts
- Tab navigation (create, close, switch)
- Pane management (split, navigate, resize)
- Clipboard operations
- Profile switching:
- Ctrl + Shift + 1 for Linux
- Ctrl + Shift + 2 for Python
- Ctrl + Shift + 3 for PowerShell
- Ctrl + Shift + 4 for CMD
- Similar to my VSCode settings
-
Appearance
- Color scheme matching my Linux Dotfiles and VSCode theme
- Source Code Pro font
- Custom prompt for WSL using my Fancy Bash variation
- Windows Terminal
- Windows Subsystem for Linux (WSL) with at least one Linux distribution
- Source Code Pro font installed on Windows (TTF recommended)
- (Optional) My Fancy Bash prompt for the custom WSL prompt
- Close the Windows Terminal if it's running
- Open PowerShell
- Enter WSL with the
wslcommand - Go to the Windows Terminal settings folder:
cd "/mnt/c/Users/$(whoami.exe | cut -d'\' -f2 | tr -d '\r')/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe"
- Back up your existing configuration if needed:
cp -r LocalState LocalState_backup
- Remove the default configuration:
rm -rf LocalState
- Clone this repository:
git clone https://github.com/lu0/windows-terminal-setup LocalState
- Exit WSL and PowerShell, then open the Windows Terminal
You can edit settings.json in the LocalState folder to further adjust the terminal to your needs.
- If Windows Terminal doesn't load, check for errors in
settings.json - For WSL issues, verify your Linux distribution is properly installed
- Font problems usually mean Source Code Pro isn't installed correctly
