Cause of Cannot use zoxide with oh-my-posh powershell #6784
Unanswered
aguevara
asked this question in
Troubleshoot
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Regarding locked Issue 5704 Cannot use zoxide with oh-my-posh powershell, I encountered the same problem in powershell, and the fix was to initialize omp before zoxide, not after. The OP mentioned that changing to a piped expression fixed the issue, but the OP also changed the order of initialization, so that zoxide was initialized after omp. That is the real fix. zoxide must be initialized after omp. This is necessary because zoxide uses the prompt to work, so if zoxide is initialized before omp, the latter wipes out the former. See this comment on issue 270 by the owner of zoxide describing the fix for the same issue in bash, and my comment there
Beta Was this translation helpful? Give feedback.
All reactions