Last active
February 24, 2026 18:39
-
-
Save ericchansen/b8025735ab32d6948bc4de0dd883900d to your computer and use it in GitHub Desktop.
PowerShell profile - Oh My Posh theme, Split-Copilot, PSCommandHelper
This file contains hidden or 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
| # Oh My Posh initialization with pwd: osc99 for split pane directory inheritance | |
| # Theme includes osc99 setting - see https://github.com/shanselman/splitpanefix | |
| oh-my-posh init pwsh --config "https://gist.githubusercontent.com/ericchansen/1efbd10b90802f5102ca23b5a72b04e3/raw/clean-detailed.omp.json" | Invoke-Expression | |
| # Git branch/tag tab completion | |
| Import-Module posh-git | |
| # Split pane and launch GitHub Copilot CLI in current directory | |
| function Split-Copilot { | |
| wt -w 0 split-pane -d "$PWD" pwsh -NoLogo -NoExit -Command "copilot" | |
| } | |
| Set-Alias -Name spc -Value Split-Copilot | |
| # PSCommandHelper - learn PowerShell by doing | |
| Import-Module PSCommandHelper | |
| Enable-PSCommandHelper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment