how to set that Opening a tab/pane in the same directory in Windows Terminal(oh-my-posh) #1532
-
I followed the instruction on how to set that Opening a tab/pane in the same directory in Windows Terminal
but when I restart the window terminal , oh my posh does't work . |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
You can't use that snippet as it overrides the current prompt (and thus removes oh-my-posh). You can however set osc99 to true when using Windows Terminal. |
Beta Was this translation helpful? Give feedback.
-
@JanDeDobbeleer I've added "pwd": "osc99" to the theme's json file which I'm using right now and it still doesn't open the new tab in the same directory, also tried "osc99": true but no luck |
Beta Was this translation helpful? Give feedback.
-
I'll summarize it for me to do it faster next time.
See also |
Beta Was this translation helpful? Give feedback.
-
Additional context: |
Beta Was this translation helpful? Give feedback.
I'll summarize it for me to do it faster next time.
C:\Users\<user>\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
profile contains a line likeoh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/unicorn.omp.json" | Invoke-Expression
code $env:POSH_THEMES_PATH/unicorn.omp.json
to open the file VS code (or any other editor){ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", + "pwd": "osc99", "blocks": [ { "alignment": "left", ...
See also