Skip to content

how to set that Opening a tab/pane in the same directory in Windows Terminal(oh-my-posh) #1532

Answered by MartyIX
sixwaaaay asked this question in Troubleshoot
Discussion options

You must be logged in to vote

I'll summarize it for me to do it faster next time.

  1. Make sure your C:\Users\<user>\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 profile contains a line like oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/unicorn.omp.json" | Invoke-Expression
  2. Use code $env:POSH_THEMES_PATH/unicorn.omp.json to open the file VS code (or any other editor)
  3. Modify the file as follows:
    {
      "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
    + "pwd": "osc99",
      "blocks": [
        {
          "alignment": "left",
        ...

See also

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@eglavin
Comment options

@JanDeDobbeleer
Comment options

@eglavin
Comment options

Comment options

You must be logged in to vote
3 replies
@JanDeDobbeleer
Comment options

@pranavpa8788
Comment options

@JanDeDobbeleer
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JanDeDobbeleer
Comment options

You must be logged in to vote
1 reply
@aleksmark98
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants