3 ms·
i'm not sure if it works in all shells, but at least in zsh/bash doing $ echo "this will not be saved in history" as opposed to $echo "this will be s
by q_revert 13y ago
i'm not sure if it works in all shells, but at least in zsh/bash doing
$ echo "this will not be saved in history"
as opposed to
$echo "this will be saved in history"
can be useful
- pooriaazimi 13y agoAFAIK, in bash/zsh you have to do export HISTCONTROL=ignoredups:ignorespace in .bashrc or .bash_profile for the above trick to work. fish, OTOH, seems to do this by default.