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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"console_title_template": "{{if .Root}} \u26a1 {{end}}{{.UserName}} \u2794 📁{{.Folder}}", | |
"final_space": true, | |
"patch_pwsh_bleed": true, | |
"version": 2, | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", |
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
# This is my PowerShell profile script. It is executed every time a new PowerShell session is started. | |
# It sets up the environment, loads modules, and defines functions for convenience. | |
oh-my-posh init pwsh --config "$HOME\.myposhtheme.omp.json" | Invoke-Expression; | |
$null = Register-EngineEvent -SourceIdentifier 'Powershell.OnIdle' -MaxTriggerCount 1 -Action { | |
# A simple implementation of refreshenv | |
function Global:Update-SessionEnvironment { | |
# Call a powershell process to act as a wrapper to capture the output: | |
& ([Diagnostics.Process]::GetCurrentProcess().ProcessName) -NoP -c ( |