I was wondering if it is possible to avoid storing commands in fish history which have failed. At the moment I e.g. have commands like
:q stored in my fish history, because I accidentally typed that in the shell instead of vim.
The command makes no sense and the command line, and therefore fails, which makes totally sense. But it would be nice if there would be a possibility to avoid having this failed command in my fish history, because it clutters autocompletion with a lot of senseless commands. Is that somehow possible?