Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove history entry needs a space after the command to work #1

Open
nour-s opened this issue Jul 2, 2023 · 0 comments
Open

Remove history entry needs a space after the command to work #1

nour-s opened this issue Jul 2, 2023 · 0 comments

Comments

@nour-s
Copy link

nour-s commented Jul 2, 2023

It seems that this line doesn't match the command if no space is present at the end.
https://github.com/benallred/configs/blob/f8814951e66d33feb4ed045b456a2ca60bd46658/powershell/PSReadLine.ps1#L78C1-L78C1

I suggest this modification for it to work:

$toRemove = [Regex]::Escape(($line -replace "`r`n", "```r`n"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant