Open asportnoy opened 1 year ago
I should mention that I was able to make that rule by matching the script instead of the output, but I'd prefer to be able to do it with the output since that should work with more commands than just this one.
I am having a similar issue. I am unable to create any rules which match the output of the previous command, which makes some rules impossible.
The Fuck 3.32 Python 3.10.8 Fish Shell 3.5.1 macOS Ventura
I'm trying to create a rule to catch suggestions from fish for a command to try. An example:
However, after some debugging, I found that
command.output
is empty for some reason. This isn't the only anomaly like that; I also found thatcommand.output
for fish's command not found message is/bin/sh: x: command not found
instead offish: Unknown command: x
(what shows in terminal). This leads me to believe that thefuck is trying to read some internal output instead of what Fish is actually outputting to the user.For reference, here's my WIP rule:
And to debug the output, I used