Hacker News new | ask | show | jobs
by dr4g0n 3939 days ago
Do be aware though that this only works if HISTCONTROL is set to 'ignorespace' or 'ignoreboth' (for bash anyway).

For zsh, you need to have HIST_IGNORE_SPACE set.