Command History Not Shown In PowerShell 7 #228
-
Prerequisites
DescriptionPowerShell 5 can show the last command I typed. But PowerShell 7 can't do that. Environment
Steps to Reproduce
Expected behavior: It can show autosuggestions (command suggestion based on command history that I typed). oh-my-posh 2 can show that. But it broke, so I deleted everything about oh-my-posh2. Actual behavior: PowerShell 7 can't show command suggestions. I tried to reinstall oh-my-posh3 based on: https://ohmyposh.dev/docs/installation#4-replace-your-existing-prompt, it didn't work at all |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Beta Was this translation helpful? Give feedback.
-
@rescenic command completion has nothing to do with oh-my-posh (regardless of V2 or V3) as it's a feature enabled by PSReadline. Most likely that one's not set up correctly for your PS7.1 shell, there's more information to be found on that here. Oh my Posh overwrites the |
Beta Was this translation helpful? Give feedback.
-
I have the same theme and I want to know how to remove "pwsh" and "no config"? |
Beta Was this translation helpful? Give feedback.
@rescenic command completion has nothing to do with oh-my-posh (regardless of V2 or V3) as it's a feature enabled by PSReadline. Most likely that one's not set up correctly for your PS7.1 shell, there's more information to be found on that here.
Oh my Posh overwrites the
prompt
function to display a different styled prompt, and does not touch anything outside of that context (in line with the UNIX philosophy).