Closed njZhuMin closed 3 years ago
Not an issue. I created the alias, safe-rm binary does exist. But the node_modules/safe-rm were broken. So it didn't work. Surprised there is no error though /usr/lib/node_modules/safe-rm/bin/rm.sh does not exist :-)
Hi @kaelzhang , Thank you for your great job done here! However recently I found safe-rm does not work anymore on Linux while it still works on my macOS.
Reproduction:
Install
$ npm i -g safe-rm
$ alias rm='safe-rm'
// added to ~/.zshrc since I am using zshMake sure alias works
$ alias
// outputs: rm=safe-rmTest deleting
$ touch a.txt
$ rm a.txt
// a.txt not found in Trash$ touch a.txt
$ safe-rm a.txt
// a.txt not found in TrashI also tried both
zsh
andbash
, got the same result.Please help check this out since it's really terrifying to find it not working anymore lol.
Thanks.
Env: OS: Manjaro 20.1.2 Mikah Kernel: x86_64 Linux 5.4.72-1-MANJARO Shell: zsh 5.8 Resolution: 3840x1080 DE: GNOME 3.36.4