3 ms·
Prefixing your shell command with a space will prevent it from ending up in history.
by aequitas 9y ago
Prefixing your shell command with a space will prevent it from ending up in history.
- kchr 9y agoSay whaaaaaaaaaat
- kseistrup 9y ago$ echo $HISTCONTROL ignoreboth From ‘man bash’: HISTCONTROL A colon-separated list of values controlling how commands are saved on the history list. If the list of values includes ignorespace, lines which begin with a space character are not saved in the history list. A value of ignoredups causes lines matching the previous history entry to not be saved.
- kchr 9y agoBash - the gift that keeps giving :-) TIL!