Today I Learned

hashrocket A Hashrocket project

🐚 Private Shell History

Sometimes you don't want to put a dangerous command into your shell history, for example:

git reset --hard HEAD~

In zsh you can prevent a command from being saved in you history by setting the zsh option: setopt HIST_IGNORE_SPACE

then just prefix your command with a space:

 git reset --hard HEAD~
See More #workflow TILs