Iirc you can also just disable it with unset HISTFILE
. This will reset when you open a new session unless you put it in the .zshrc
or something.
Comment on Microsoft’s controversial Windows Recall feature is coming back in October
utopiah@lemmy.world 2 months agoActually no… well for zsh I don’t know but for bash at least if you start the command with a space it won’t be added to history. So not every command, you still get to (conveniently IMHO) decide that too!
PlexSheep@infosec.pub 2 months ago
Andromxda@lemmy.dbzer0.com 2 months ago
That’s so cool, how have I never discovered that after so many years of using Linux?..
qjkxbmwvz@startrek.website 2 months ago
Right, you can control that behavior in bash with the
HISTCONTROL
variable, and in zsh withsetopt HIST_IGNORE_SPACE
:)