4 ms·
Sometimes one does not want the shell to log a command. In this case use: export HISTCONTROL=ignorespace or better export HISTCONTROL=ignoreboth Now ev
by kephra 12y ago
Sometimes one does not want the shell to log a command.
In this case use:
export HISTCONTROL=ignorespace
or better
export HISTCONTROL=ignoreboth
Now every command that starts with a space wont be logged into history.
- dredmorbius 12y agoAlso HISTIGNORE if you want to ignore specific commands, or export HISTFILE=/dev/null to disable history storage. HISTSIZE=0 also works, though it disables all history commands for the present shell, whereas HISTFILE merely fails to save them to file on exit.