From fd5209b70194ce4904f29d1cfd5af21cc3bdb9d5 Mon Sep 17 00:00:00 2001 From: oitsjustjose Date: Tue, 13 May 2025 18:45:49 -0500 Subject: [PATCH] Windows Terminal tools that are super useful --- windows/Windows Terminal/settings.json | 173 +++++++++++++++++++++++++ windows/pwsh10k.omp.json | 79 +++++++++++ 2 files changed, 252 insertions(+) create mode 100644 windows/Windows Terminal/settings.json create mode 100644 windows/pwsh10k.omp.json diff --git a/windows/Windows Terminal/settings.json b/windows/Windows Terminal/settings.json new file mode 100644 index 0000000..3da8e4d --- /dev/null +++ b/windows/Windows Terminal/settings.json @@ -0,0 +1,173 @@ +// This file was initially generated by Windows Terminal 1.2.2381.0 +// It should still be usable in newer versions, but newer versions might have additional +// settings, help text, or changes that you will not see unless you clear this file +// and let us generate a new one for you. +// To view the default settings, hold "alt" while clicking on the "Settings" button. +// For documentation on these settings, see: https://aka.ms/terminal-documentation +{ + "$schema": "https://aka.ms/terminal-profiles-schema", + "defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", + // You can add more global application settings here. + // To learn more about global settings, visit https://aka.ms/terminal-global-settings + // If enabled, selections are automatically copied to your clipboard. + "copyOnSelect": false, + // If enabled, formatted data is also copied to your clipboard + "copyFormatting": false, + "confirmCloseAllTabs": false, + "largePasteWarning": false, + "multiLinePasteWarning": false, + // A profile specifies a command to execute paired with information about how it should look and feel. + // Each one of them will appear in the 'New Tab' dropdown, + // and can be invoked from the commandline with `wt.exe -p xxx` + // To learn more about profiles, visit https://aka.ms/terminal-profile-settings + "profiles": { + "defaults": { + // Put settings here that you want to apply to all profiles. + }, + "list": [ + { + "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", + "hidden": false, + "name": "Ubuntu-18.04", + "source": "Windows.Terminal.Wsl", + "colorScheme": "GitHub Dark", + "fontFace": "Jetbrains Mono", + "fontSize": 10, + "cursorShape": "underscore", + "startingDirectory": "//wsl$/Ubuntu-18.04/home/jose/", + "icon": "C:\\Customization\\Icons\\ubuntu.png", + "tabTitle": "Ubuntu { 💻 }", + "suppressApplicationTitle": true + }, + { + // Make changes here to the powershell.exe profile. + "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", + "name": "Windows PowerShell", + "commandline": "powershell.exe", + "hidden": false, + "colorScheme": "GitHub Dark", + "fontFace": "Jetbrains Mono", + "fontSize": 10, + "cursorShape": "underscore" + }, + { + // Make changes here to the cmd.exe profile. + "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", + "name": "Command Prompt", + "commandline": "cmd.exe", + "hidden": true, + "colorScheme": "GitHub Dark", + "fontFace": "Jetbrains Mono", + "fontSize": 10, + "cursorShape": "underscore" + }, + { + "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", + "hidden": true, + "name": "Azure Cloud Shell", + "source": "Windows.Terminal.Azure", + "colorScheme": "Moonlight", + "fontFace": "Jetbrains Mono", + "fontSize": 10, + "cursorShape": "underscore" + }, + { + "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", + "hidden": false, + "name": "PowerShell", + "source": "Windows.Terminal.PowershellCore" + }, + { + "guid": "{dd4a398e-8899-561b-ad1b-1e9704018b3a}", + "hidden": false, + "name": "xWSL", + "source": "Windows.Terminal.Wsl" + } + ] + }, + // Add custom color schemes to this array. + // To learn more about color schemes, visit https://aka.ms/terminal-color-schemes + "schemes": [ + { + "name": "Moonlight", + "foreground": "#C8D3F5", + "background": "#222436", + "black": "#2C2E44", + "red": "#FF757F", + "green": "#C3E88D", + "yellow": "#FFC777", + "blue": "#82AAFF", + "purple": "#FCA7EA", + "cyan": "#86E1FC", + "white": "#CCDBF1", + "brightBlack": "#363852", + "brightRed": "#FF757F", + "brightGreen": "#C3E88D", + "brightYellow": "#FFC777", + "brightBlue": "#82AAFF", + "brightPurple": "#FCA7EA", + "brightCyan": "#86E1FC", + "brightWhite": "#C8D3F5", + "cursorColor": "#CCDBF1", + "selectionBackground": "#525572" + }, { + "name": "GitHub Dark", + "foreground": "#d1d5da", + "background": "#1b1f23", + "black": "#2c2e44", + "red": "#d73a49", + "green": "#28a745", + "yellow": "#ffd33d", + "blue": "#36404b", + "purple": "#b392f0", + "cyan": "#79b8ff", + "white": "#e1e4e8", + "brightBlack": "#363852", + "brightRed": "#f97583", + "brightGreen": "#34d058", + "brightYellow": "#fedf74", + "brightBlue": "#3392ff", + "brightPurple": "#d992f0", + "brightCyan": "#17e5e6", + "brightWhite": "#f2f5f9", + "cursorColor": "#d1d5da", + "selectionBackground": "#39414a" + } + ], + // Add custom keybindings to this array. + // To unbind a key combination from your defaults.json, set the command to "unbound". + // To learn more about keybindings, visit https://aka.ms/terminal-keybindings + "keybindings": [ + // Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json. + // These two lines additionally bind them to Ctrl+C and Ctrl+V. + // To learn more about selection, visit https://aka.ms/terminal-selection + { + "command": { + "action": "copy", + "singleLine": false + }, + "keys": "ctrl+c" + }, + { + "command": "paste", + "keys": "ctrl+v" + }, + // Press Ctrl+Shift+F to open the search box + { + "command": "find", + "keys": "ctrl+shift+f" + }, + // Press Alt+Shift+D to open a new pane. + // - "split": "auto" makes this pane open in the direction that provides the most surface area. + // - "splitMode": "duplicate" makes the new pane use the focused pane's profile. + // To learn more about panes, visit https://aka.ms/terminal-panes + { + "command": { + "action": "splitPane", + "split": "auto", + "splitMode": "duplicate" + }, + "keys": "alt+shift+d" + } + ] +} \ No newline at end of file diff --git a/windows/pwsh10k.omp.json b/windows/pwsh10k.omp.json new file mode 100644 index 0000000..302e852 --- /dev/null +++ b/windows/pwsh10k.omp.json @@ -0,0 +1,79 @@ +{ + "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}", + "blocks": [ + { + "type": "prompt", + "alignment": "left", + "segments": [ + { + "foreground": "p:os", + "style": "plain", + "template": "{{.Icon}}", + "type": "os" + }, + { + "foreground": "cyan", + "style": "plain", + "template": "{{if .Root}} \ue701 {{ .UserName }} as Administrator{{end}}", + "type": "session" + }, + { + "properties": { + "enable_hyperlink": true, + "home_icon": "\uf015 ~", + "style": "short" + }, + "foreground": "lightBlue", + "type": "path", + "style": "plain" + }, + { + "properties": { + "display_stash_count": true, + "branch_icon": "\ue725 ", + "prefix": "\ue708" + }, + "foreground": "lightCyan", + "type": "git", + "style": "plain" + }, + { + "properties": { + "postfix": "", + "prefix": "", + "text": "\u200b" + }, + "foreground": "white", + "type": "text", + "style": "plain" + } + ] + }, + { + "alignment": "left", + "newline": true, + "segments": [ + { + "foreground": "cyan", + "foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"], + "properties": { + "always_enabled": true + }, + "style": "plain", + "template": "\u276f ", + "type": "status" + } + ], + "type": "prompt" + } + ], + "transient_prompt": { + "foreground": "cyan", + "foreground_templates": ["{{ if gt .Code 0 }}red{{ end }}"], + "template": "\u276f ", + "newline": true + }, + "version": 3, + "final_space": false +}