Comment Comment by dr4g0n 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. parent dr4g0n 11 years ago
For zsh, you need to have HIST_IGNORE_SPACE set.