From 6bcc3e45c69f94ed0144e63898d065898cec9840 Mon Sep 17 00:00:00 2001 From: m1ngsama Date: Wed, 20 Aug 2025 11:00:00 +0800 Subject: [PATCH] feat: add Windows Terminal configuration --- windows-terminal/README.md | 65 +++++++++ windows-terminal/settings.json | 236 +++++++++++++++++++++++++++++++++ 2 files changed, 301 insertions(+) create mode 100644 windows-terminal/README.md create mode 100644 windows-terminal/settings.json diff --git a/windows-terminal/README.md b/windows-terminal/README.md new file mode 100644 index 0000000..de00242 --- /dev/null +++ b/windows-terminal/README.md @@ -0,0 +1,65 @@ +# Windows Terminal Configuration + +Optimized Windows Terminal settings for enhanced development experience. + +## Features + +- **Custom Color Schemes**: One Half Dark (default) and Dracula +- **Optimized Font**: CaskaydiaCove Nerd Font for better icon support +- **Enhanced Keybindings**: Vim-inspired pane management +- **Performance Optimized**: ClearType antialiasing, disabled acrylic for better performance +- **Multi-Profile Support**: PowerShell, CMD, WSL, Azure Cloud Shell + +## Installation + +1. Open Windows Terminal +2. Press `Ctrl+,` to open settings +3. Click "Open JSON file" button in bottom-left +4. Replace contents with `settings.json` from this directory +5. Save and restart Windows Terminal + +## Keybindings + +### Panes +- `Alt+Shift+D` - Duplicate pane +- `Alt+Shift+-` - Split horizontally +- `Alt+Shift+|` - Split vertically +- `Ctrl+Shift+W` - Close pane + +### Navigation +- `Alt+Arrow Keys` - Move focus between panes +- `Alt+Shift+Arrow Keys` - Resize panes + +### Tabs +- `Ctrl+Shift+T` - New tab +- `Ctrl+Shift+D` - Duplicate tab + +### View +- `Ctrl+Shift+F11` - Toggle focus mode +- `Alt+Enter` - Toggle fullscreen +- `Ctrl+Shift+F` - Find + +## Required Fonts + +Install [CaskaydiaCove Nerd Font](https://github.com/ryanoasis/nerd-fonts/releases) for best experience: + +```powershell +scoop bucket add nerd-fonts +scoop install CascadiaCode-NF +``` + +## Color Schemes + +### One Half Dark (Default) +Modern, easy-on-the-eyes color scheme based on Atom's One Dark. + +### Dracula +Popular dark theme with vibrant colors. + +## Customization + +To change the default color scheme, edit the `colorScheme` property in the PowerShell profile: + +```json +"colorScheme": "Dracula" +``` diff --git a/windows-terminal/settings.json b/windows-terminal/settings.json new file mode 100644 index 0000000..09fd418 --- /dev/null +++ b/windows-terminal/settings.json @@ -0,0 +1,236 @@ +{ + "$schema": "https://aka.ms/terminal-profiles-schema", + "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", + "copyOnSelect": false, + "copyFormatting": "none", + "confirmCloseAllTabs": true, + "largePasteWarning": true, + "multiLinePasteWarning": true, + "experimental.rendering.forceFullRepaint": false, + "experimental.rendering.software": false, + + "profiles": { + "defaults": { + "fontFace": "CaskaydiaCove Nerd Font", + "fontSize": 11, + "fontWeight": "normal", + "cursorShape": "bar", + "cursorColor": "#FFFFFF", + "antialiasingMode": "cleartype", + "useAcrylic": false, + "acrylicOpacity": 0.8, + "scrollbarState": "visible", + "snapOnInput": true, + "historySize": 9001, + "bellStyle": "none" + }, + "list": [ + { + "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", + "name": "PowerShell", + "commandline": "pwsh.exe -NoLogo", + "source": "Windows.Terminal.PowershellCore", + "hidden": false, + "colorScheme": "One Half Dark", + "startingDirectory": "%USERPROFILE%", + "icon": "ms-appx:///ProfileIcons/pwsh.png", + "tabTitle": "PowerShell" + }, + { + "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", + "name": "Command Prompt", + "commandline": "cmd.exe", + "hidden": false, + "colorScheme": "Campbell", + "startingDirectory": "%USERPROFILE%", + "icon": "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png" + }, + { + "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}", + "name": "Ubuntu", + "source": "Windows.Terminal.Wsl", + "hidden": false, + "colorScheme": "One Half Dark", + "startingDirectory": "~", + "icon": "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png" + }, + { + "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", + "name": "Azure Cloud Shell", + "source": "Windows.Terminal.Azure", + "hidden": false + } + ] + }, + + "schemes": [ + { + "name": "One Half Dark", + "black": "#282c34", + "red": "#e06c75", + "green": "#98c379", + "yellow": "#e5c07b", + "blue": "#61afef", + "purple": "#c678dd", + "cyan": "#56b6c2", + "white": "#dcdfe4", + "brightBlack": "#5a6374", + "brightRed": "#e06c75", + "brightGreen": "#98c379", + "brightYellow": "#e5c07b", + "brightBlue": "#61afef", + "brightPurple": "#c678dd", + "brightCyan": "#56b6c2", + "brightWhite": "#dcdfe4", + "background": "#282c34", + "foreground": "#dcdfe4", + "selectionBackground": "#3e4451", + "cursorColor": "#abb2bf" + }, + { + "name": "Dracula", + "black": "#21222c", + "red": "#ff5555", + "green": "#50fa7b", + "yellow": "#f1fa8c", + "blue": "#bd93f9", + "purple": "#ff79c6", + "cyan": "#8be9fd", + "white": "#f8f8f2", + "brightBlack": "#6272a4", + "brightRed": "#ff6e6e", + "brightGreen": "#69ff94", + "brightYellow": "#ffffa5", + "brightBlue": "#d6acff", + "brightPurple": "#ff92df", + "brightCyan": "#a4ffff", + "brightWhite": "#ffffff", + "background": "#282a36", + "foreground": "#f8f8f2", + "selectionBackground": "#44475a", + "cursorColor": "#f8f8f2" + } + ], + + "actions": [ + { + "command": { + "action": "copy", + "singleLine": false + }, + "keys": "ctrl+c" + }, + { + "command": "paste", + "keys": "ctrl+v" + }, + { + "command": "find", + "keys": "ctrl+shift+f" + }, + { + "command": { + "action": "splitPane", + "split": "auto", + "splitMode": "duplicate" + }, + "keys": "alt+shift+d" + }, + { + "command": { + "action": "splitPane", + "split": "horizontal" + }, + "keys": "alt+shift+-" + }, + { + "command": { + "action": "splitPane", + "split": "vertical" + }, + "keys": "alt+shift+|" + }, + { + "command": "closePane", + "keys": "ctrl+shift+w" + }, + { + "command": { + "action": "moveFocus", + "direction": "down" + }, + "keys": "alt+down" + }, + { + "command": { + "action": "moveFocus", + "direction": "left" + }, + "keys": "alt+left" + }, + { + "command": { + "action": "moveFocus", + "direction": "right" + }, + "keys": "alt+right" + }, + { + "command": { + "action": "moveFocus", + "direction": "up" + }, + "keys": "alt+up" + }, + { + "command": { + "action": "resizePane", + "direction": "down" + }, + "keys": "alt+shift+down" + }, + { + "command": { + "action": "resizePane", + "direction": "left" + }, + "keys": "alt+shift+left" + }, + { + "command": { + "action": "resizePane", + "direction": "right" + }, + "keys": "alt+shift+right" + }, + { + "command": { + "action": "resizePane", + "direction": "up" + }, + "keys": "alt+shift+up" + }, + { + "command": "toggleFocusMode", + "keys": "ctrl+shift+f11" + }, + { + "command": "toggleFullscreen", + "keys": "alt+enter" + }, + { + "command": "openSettings", + "keys": "ctrl+," + }, + { + "command": { + "action": "newTab" + }, + "keys": "ctrl+shift+t" + }, + { + "command": "duplicateTab", + "keys": "ctrl+shift+d" + } + ] +}