Last active
November 18, 2022 15:04
-
-
Save dougwaldron/8a84062beb55414d99bcdd5240e4f447 to your computer and use it in GitHub Desktop.
Windows Terminal settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#77E4F7", | |
"properties": { | |
"style": "full" | |
}, | |
"style": "plain", | |
"template": "{{ .Path }} ", | |
"type": "path" | |
}, | |
{ | |
"foreground": "#FFE700", | |
"style": "plain", | |
"template": "{{ .HEAD }} ", | |
"type": "git" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#43D426", | |
"style": "plain", | |
"template": "\u276f ", | |
"type": "text" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"version": 2 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load omp theme | |
oh-my-posh init pwsh --config 'https://gist.githubusercontent.com/dougwaldron/8a84062beb55414d99bcdd5240e4f447/raw/32c1e20ab792340716d4fdcf4da6dc5527c794c3/doug.omp.json' | Invoke-Expression | |
# How to load one of the default themes instead: | |
# oh-my-posh --init --shell pwsh --config "$env:POSH_THEMES_PATH\powerlevel10k_lean.omp.json" | Invoke-Expression | |
# Load terminal icons | |
# Adds 900 ms to PWSH startup time! | |
# Import-Module -Name Terminal-Icons | |
# Open current repo on GitHub | |
function GitW { | |
$repoUrl = git config --get remote.origin.url | |
if (!$repoUrl) { | |
Write-Output "No git remote found." | |
break | |
} | |
# Fix repo URLs | |
$repoUrl = $repoUrl -replace ":", "/" | |
$repoUrl = $repoUrl -replace "^git@", "https://" | |
$repoUrl = $repoUrl -replace ".git$", "" | |
$repoUrl = $repoUrl -replace "^https///", "https://" | |
Start-Process $repoUrl | |
} | |
# PowerShell parameter completion shim for the dotnet CLI | |
Register-ArgumentCompleter -Native -CommandName dotnet -ScriptBlock { | |
param($commandName, $wordToComplete, $cursorPosition) | |
dotnet complete --position $cursorPosition "$wordToComplete" | ForEach-Object { | |
[System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"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" | |
} | |
], | |
"copyFormatting": "none", | |
"copyOnSelect": false, | |
"defaultProfile": "{d4fd0e21-e049-43d6-88f4-0eac8ebca858}", | |
"defaults": { | |
"font": { | |
"features": { | |
"calt": 0, | |
"clig": 0, | |
"dlig": 0, | |
"hlig": 0, | |
"liga": 0, | |
"rlig": 0, | |
"salt": 1 | |
} | |
} | |
}, | |
"profiles": { | |
"defaults": {}, | |
"list": [ | |
{ | |
"colorScheme": "Dracula", | |
"commandline": "C:\\Program Files\\PowerShell\\7\\pwsh.exe", | |
"font": { | |
"face": "CaskaydiaCove Nerd Font Mono", | |
"size": 10, | |
"features": { | |
"calt": 0, | |
"clig": 0, | |
"dlig": 0, | |
"hlig": 0, | |
"liga": 0, | |
"rlig": 0, | |
"salt": 1 | |
} | |
}, | |
"guid": "{d4fd0e21-e049-43d6-88f4-0eac8ebca858}", | |
"hidden": false, | |
"icon": "ms-appx:///ProfileIcons/pwsh.png", | |
"name": "PowerShell+", | |
"opacity": 100, | |
"startingDirectory": "D:/projects/", | |
"cursorShape": "filledBox", | |
"useAcrylic": false | |
}, | |
{ | |
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
"hidden": true, | |
"name": "PowerShell", | |
"source": "Windows.Terminal.PowershellCore", | |
"startingDirectory": "D:/" | |
}, | |
{ | |
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", | |
"hidden": false, | |
"name": "CMD", | |
"startingDirectory": "D:/" | |
}, | |
{ | |
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", | |
"hidden": true, | |
"name": "Azure Cloud Shell", | |
"source": "Windows.Terminal.Azure" | |
}, | |
{ | |
"guid": "{6831de70-7fa4-5929-a595-cce68dc34903}", | |
"hidden": true, | |
"name": "Developer Command Prompt for VS 2022", | |
"source": "Windows.Terminal.VisualStudio" | |
}, | |
{ | |
"guid": "{345efb9f-0205-58f0-aaaf-996c84180a6a}", | |
"hidden": true, | |
"name": "Developer PowerShell for VS 2022", | |
"source": "Windows.Terminal.VisualStudio" | |
}, | |
{ | |
"guid": "{2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}", | |
"hidden": true, | |
"name": "Git Bash", | |
"source": "Git" | |
} | |
] | |
}, | |
"schemes": [ | |
{ | |
"background": "#282A36", | |
"black": "#21222C", | |
"blue": "#BD93F9", | |
"brightBlack": "#6272A4", | |
"brightBlue": "#D6ACFF", | |
"brightCyan": "#A4FFFF", | |
"brightGreen": "#69FF94", | |
"brightPurple": "#FF92DF", | |
"brightRed": "#FF6E6E", | |
"brightWhite": "#FFFFFF", | |
"brightYellow": "#FFFFA5", | |
"cursorColor": "#BD93F9", | |
"cyan": "#8BE9FD", | |
"foreground": "#F8F8F2", | |
"green": "#50FA7B", | |
"name": "Dracula", | |
"purple": "#FF79C6", | |
"red": "#FF5555", | |
"selectionBackground": "#44475A", | |
"white": "#F8F8F2", | |
"yellow": "#F1FA8C" | |
} | |
], | |
"windowingBehavior": "useExisting" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment