It is not a rm wrapper, but I personally use trash-cli. It moves the file or folder you want to delete to a trash folder. When you are happy with the result, you can run trash-empty, and it deletes everything. It does not ask anything with git repositories.
Out of topic: I stopped using rm after one day I deleted by mistake the source code of a college project that took me a couple of months to complete (I did not know how to use GitHub, GitLab and similar yet). I spent the worst 2 hours of my life recovering the files.
Nice! Yes, sometimes laptop keyboards are weird. I mapped the Caps key to Super and I use it for i3 windows. Pressing the normal super/windows key all the time was really painful for my hand
I just read the readme file where it says:
does not implement the xdg-trash spec
So I to thought it was different. But having a closer look, the concept is similar to trash-cli.
If you don't like the "trash" concept, I also found this: https://github.com/nivekuil/rip
It is not a rm wrapper, but I personally use trash-cli. It moves the file or folder you want to delete to a trash folder. When you are happy with the result, you can run trash-empty, and it deletes everything. It does not ask anything with git repositories.
Out of topic: I stopped using
rmafter one day I deleted by mistake the source code of a college project that took me a couple of months to complete (I did not know how to use GitHub, GitLab and similar yet). I spent the worst 2 hours of my life recovering the files.Could you post your command please?
I believe since 2012 or 2013. I did two full hardware migrations (new laptop) and one migration from HDD to SSD.
Migrate installation to new hardware from the Archwiki is a great resource.
Nice! Yes, sometimes laptop keyboards are weird. I mapped the Caps key to Super and I use it for i3 windows. Pressing the normal super/windows key all the time was really painful for my hand
You are welcome! I tried that some time ago but I never managed to get used to it :)
xmodmap -e "clear Lock" -e "keycode 66 = F13"Long time not playing with
xmodmap, but the manual says:So I think using
-emultiple times should do the trick.I think that you first need to clear the
Lock. I do something similar and I have this in my~/.Xmodmapfile:To execute:
xmodmap ~/.Xmodmap.How should this happen? With
pacdiff?I think you are right. I'm using
!env_resetin my sudoers file, so theDIFFPROGworks.You are right! Thanks, I edited the post above
Interesting, can I use this in combination with
yay?Shouldn't it be
/etc/systemd/journald.conf?I think it uses
DIFFPROG. Try this:Sounds scary! :D
But yeah, bleachbit works quite well to clean your home directory. I believe also Stacer is an alternative for that job.
Searches
.pacnewfiles in your system and let's you decide what to do with them. https://wiki.archlinux.org/index.php/Pacman/Pacnew_and_Pacsave#pacdiffGreat reminder, thank you! I would also suggest to run
sudo pacdiffregularly to update your configuration and remove.pacnewfiles.Actually, I have setup a script to update my system and run some clean up after that:
I have another script that I run every week to backup my system with rsync. Here I cleanup pacman caches.
Cheers
End of this list.
Back to top