2 ms·
Instead of `alias rm="rm –I"` for the confirmation dialog before removing a file, I prefer to use trash-cli[0] since I can restore trashed files. However, I ha
by tester457 2y ago
Instead of `alias rm="rm –I"` for the confirmation dialog before removing a file, I prefer to use trash-cli[0] since I can restore trashed files.
However, I haven't found a similar solution that works on Termux.
[0] https://github.com/andreafrancia/trash-cli https://github.com/andreafrancia/trash-cli
- abnry 2y agoI do the same. My alias for rm just echos "use trash" so I don't replace its function, just disable it. When I really need to use rm I type /bin/rm.
- 9dev 2y agoBash also allows you to use \rm to override the alias. Comes in helpful at times.
- shagie 2y agoOn a per directory basis... % touch -- -i % touch foo % touch bar % rm * zsh: sure you want to delete all 3 files in /Users/shagie/test [yn]? y remove bar? y remove foo? y % ls -i %