3 ms·
Depending on your system and configuration, couldn't you prepend a space to the command to prevent it from being saved into your history? edit: Looks like vacr
by brianshaler 12y ago
Depending on your system and configuration, couldn't you prepend a space to the command to prevent it from being saved into your history?
edit: Looks like vacri mentioned this in a peer comment an hour ago. Whoops!
- nmjohn 12y agoThat works if you are using bash, but if you are, for example, using zsh, you would first have to run "setopt histignorespace" which would enable hiding lines prepended with a space in the history (it's off by default).