Skip to content

lu0/windows-terminal-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Windows Terminal - Setup

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.

Windows Terminal using my settings

Features

  • 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

Requirements

Installation

  1. Close the Windows Terminal if it's running
  2. Open PowerShell
  3. Enter WSL with the wsl command
  4. 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"
  5. Back up your existing configuration if needed:
    cp -r LocalState LocalState_backup
  6. Remove the default configuration:
    rm -rf LocalState
  7. Clone this repository:
    git clone https://github.com/lu0/windows-terminal-setup LocalState
  8. Exit WSL and PowerShell, then open the Windows Terminal

Customization

You can edit settings.json in the LocalState folder to further adjust the terminal to your needs.

Common Issues

  • 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

About

My setup for Windows Terminal: WSL2/ExtraProfiles, keybindings, Prompt and Color Scheme.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published