I have run "mcfly init powershell" and append its output to my PowerShell profile
It works well when I press Ctrl+R with no command or command with no argument, such as cargo build.
But when I type command like ls -a or Get-ChildItem -Name it reports an error
error: unexpected argument '-a' found
tip: to pass '-a' as a value, use '-- -a'
Usage: mcfly.exe search [OPTIONS] [COMMAND]...
For more information, try '--help'.
The reason of this error is when pressing Ctrl+R, the input line is not properly quoted.
I have run "mcfly init powershell" and append its output to my PowerShell profile It works well when I press
Ctrl+R
with no command or command with no argument, such ascargo build
.But when I type command like
ls -a
orGet-ChildItem -Name
it reports an errorThe reason of this error is when pressing
Ctrl+R
, the input line is not properly quoted.