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", | |
"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 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
# A simple implementation of refreshenv | |
function Update-SessionEnvironment { | |
# Call a powershell process to act as a wrapper to capture the output: | |
& ([Diagnostics.Process]::GetCurrentProcess().ProcessName) -NoP -c ( | |
# String wrapper to help make the code more readable through comma-separation: | |
[String]::Join( | |
' ', ( | |
# Start a process that escapes the active environment: | |
'Start-Process', [Diagnostics.Process]::GetCurrentProcess().ProcessName, | |
'-UseNewEnvironment -NoNewWindow -Wait -Args ''-c'',', |