is there a way to have custom commands when displaying the prompt #1706
Answered
by
JanDeDobbeleer
Xiaorui-Huang
asked this question in
Troubleshoot
|
Before using oh-my-posh I added the functionality to save the current working directory every time the prompt is displayed using the prompt function in Powershell. This is so that pwsh will cd into the last working directory directly if I open another pwsh instance. however, calling Is there a way to configure some custom commands in the configuration file of oh-my-posh? |
Answered by
JanDeDobbeleer
Feb 6, 2022
Replies: 1 comment 3 replies
|
You can override the |
3 replies
Answer selected by
Xiaorui-Huang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can override the
Set-PoshContextfunction to have the same effect.