minus-squarePeer@discuss.tchncs.detoLinux@lemmy.ml•Tried to rm -r my .cache but accidentally did .config instead...linkfedilinkarrow-up3·4 months agoSet the HISTCONTROLvariable. If it is set to ignorespace then commands entered with a leading-space will not be stored in the history. linkfedilink
minus-squarePeer@discuss.tchncs.detoLinux@lemmy.ml•Tried to rm -r my .cache but accidentally did .config instead...linkfedilinkarrow-up15·4 months agoType a space before rm to prevent it from being added to your history to be a extra careful. linkfedilink
Set the
HISTCONTROL
variable. If it is set toignorespace
then commands entered with a leading-space will not be stored in the history.