There’s no explicit way to configure which history items fish keeps. You can purge your history of ssh like so:
history —delete —prefix ssh Also like other shells, fish history ignores commands with a leading space, so if you make sure to always type a space before ssh, it won’t record it. If you prefer, you can tell fish to insert the space automatically with an abbreviation (a feature not yet documented, because it’s not yet complete, but still useful): set -U fish_user_abbreviations ‘ssh= ssh’ Now ssh will always get the leading space. Hope that helps, _fish On Apr 22, 2014, at 10:44 AM, charlie <charlie.f...@gmail.com> wrote: > I don't want to accidentally ssh into a production machine because FISH's > history searching is so awesomely easy. > > Is there an easy way to say 'Dont record events the begin with ssh' ? > > Thanks for an awesome shell! > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p.sf.net/sfu/ExoPlatform_______________________________________________ > Fish-users mailing list > Fish-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fish-users ------------------------------------------------------------------------------ Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Software Java Based Open Source Intranet - Social, Extensible, Cloud Ready Get Started Now And Turn Your Intranet Into A Collaboration Platform http://p.sf.net/sfu/ExoPlatform _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users