What happened?
When Nushell is configured to use Sqlite history instead of plaintext...
$env.config.history.file_format = "sqlite"
It actually stores the command in the history before executing it, as such :
This makes the pay_respects.nu script stumble and suggest fixes for the "f" command itself instead of the previous command.
Using this as line 6 in the pay-respects.nu script fixes it, basically ignoring any f (with trailing whitespaces) commands :
let command = (history | where command !~ '^f\s*$' | last).command
The command and output
Just f
Build information
version: 0.8.8
No similar issue
What happened?
When Nushell is configured to use Sqlite history instead of plaintext...
It actually stores the command in the history before executing it, as such :
This makes the pay_respects.nu script stumble and suggest fixes for the "f" command itself instead of the previous command.
Using this as line 6 in the pay-respects.nu script fixes it, basically ignoring any
f(with trailing whitespaces) commands :The command and output
Just
fBuild information
version: 0.8.8
No similar issue