gun@lemmy.ml to Linux@lemmy.mlEnglish · 1 day agoTried to rm -r my .cache but accidentally did .config instead...message-squaremessage-square43fedilinkarrow-up160arrow-down12file-text
arrow-up158arrow-down1message-squareTried to rm -r my .cache but accidentally did .config instead...gun@lemmy.ml to Linux@lemmy.mlEnglish · 1 day agomessage-square43fedilinkfile-text
minus-squarePeerlinkfedilinkarrow-up10·9 hours agoType a space before rm to prevent it from being added to your history to be a extra careful.
minus-squareSayCyberOnceMore@feddit.uklinkfedilinkEnglisharrow-up1·13 minutes agoFor which shell? I just tried that on a bash system and the command was still stored in .bash_history 😔
minus-squarewh0_cares@lemmy.blahaj.zonelinkfedilinkarrow-up10·9 hours agoHoly shit, I never knew you could do that! I’ve always really wanted a feature to stop random commands from being added to my history.
Type a space before rm to prevent it from being added to your history to be a extra careful.
For which shell? I just tried that on a bash system and the command was still stored in .bash_history 😔
Holy shit, I never knew you could do that! I’ve always really wanted a feature to stop random commands from being added to my history.