Hacker News new | ask | show | jobs
by jacknagel 5262 days ago
HISTIGNORE=ssh

It won't strip existing lines, but will prevent them from being recorded in the future.

1 comments

Sorry, should be

    HISTIGNORE=ssh*
(the pattern has to match the entire line.)

Like many shell variables, this one is a colon-separated list.