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.
However, I haven't found a similar solution that works on Termux.
When I really need to use rm I type /bin/rm.
% 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
%