zsh-rm-trash
v1.0.0
Published
zsh plugin that moves rm to macOS Trash instead of permanent deletion
Downloads
101
Readme
zsh-rm-trash
rm moves files to macOS Trash instead of permanent deletion.
Uses the built-in /usr/bin/trash (macOS only, no dependencies).
Install
zinit
zinit light kanketsu-jp/zsh-rm-trashsheldon
[plugins.rm-trash]
github = "kanketsu-jp/zsh-rm-trash"antigen
antigen bundle kanketsu-jp/zsh-rm-trashnpm
npm install -g zsh-rm-trash
echo 'source $(npm root -g)/zsh-rm-trash/rm-trash.plugin.zsh' >> ~/.zshrcManual
git clone https://github.com/kanketsu-jp/zsh-rm-trash ~/.zsh/zsh-rm-trash
echo 'source ~/.zsh/zsh-rm-trash/rm-trash.plugin.zsh' >> ~/.zshrcUsage
rm file.txt # -> Trash
rm -rf dir/ # -> Trash
rm -v file.txt # -> Trash (with output)
command rm file.txt # permanent delete (bypass)Temporarily disable
RM_TRASH_DISABLE=1 rm file.txt # permanent deleteRequirements
- macOS
- zsh
License
MIT
