Peer@discuss.tchncs.detoLinux@lemmy.ml•Tried to rm -r my .cache but accidentally did .config instead...
15·
1 month 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.
This is very true, but I assume they are translating from English to Dutch.
Edit: I was wrong.
Set the
HISTCONTROL
variable. If it is set toignorespace
then commands entered with a leading-space will not be stored in the history.