I am using a very old version of fish, and I have this in my config.fish file:
function fish_command_not_found --on-event fish_command_not_found
if test $argv = "kickball"
echo "goal!"
else
echo Ooops! $argv
end
end
Testing it:
$ sdfg
Ooops! sdfg
fish: Unknown command 'sdfg'
$ kickball
goal!
fish: Unknown command 'kickball'
It works, but I don't want fish to print that last 'Unknown command' line. Can
I turn it off?
TIA
--
Luciano ES
>>
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users