Hacker News new | ask | show | jobs
by bombela 607 days ago
Prefix any command with a space and bash won't append to the history.
1 comments

Careful that's only true if you set HISTCONTROL to "ignorespace" or "ignoreboth".
Which seems the default in my anecdotal experience on debian/Ubuntu.

It is also the default on fish shell in the same anecdotal experience.