Peer@discuss.tchncs.detoLinux@lemmy.ml•Tried to rm -r my .cache but accidentally did .config instead...
14·
18 hours agoType a space before rm to prevent it from being added to your history to be a extra careful.
Type a space before rm to prevent it from being added to your history to be a extra careful.
I very much understand how one can think this would revert any changes done to files under version control but not delete the ones that are not. I believe this dialog has since been updated to explicitly state that fact.
Set the
HISTCONTROL
variable. If it is set toignorespace
then commands entered with a leading-space will not be stored in the history.