@abdfnx/manx 中文文档教程
Cli 应用程序可以将文件/文件夹移动到垃圾箱,而不会
在 Windows 8 或更高版本、Linux(任何平台)和 macOS(10.12+)上运行任何危险的作品。
rm
的问题是 dangerous 并永久删除文件,并且无法恢复,manx
只是将它们移至垃圾箱,这更安全和可逆。
Install
$ npm i -g @abdfnx/manx
Usage
$ manx --help
Usage
$ manx <file/folder> […]
Examples
# file
$ manx xcode.tsx layout.tsx edge.tsx
$ manx '*.tsx' '!xcode.tsx'
# folder
$ manx app
Pro Tip
如果你想使用rm
,你可以添加alias rm=manx
到你的.zshrc
/.bashrc
到减少打字和 安全地删除文件:$ rm manx.svg
。
Private thank
我要特别感谢 @sindresorhus 和他的酷包 trash 。
Cli app can move files/folders to the trash without any dangerous
Works on Windows 8 or higher, Linux (any platform), and macOS (10.12+).
The problem of rm
which is dangerous and permanently delete files, and you can't restore it, manx
just moves them to the trash, which is much safer and reversible .
Install
$ npm i -g @abdfnx/manx
Usage
$ manx --help
Usage
$ manx <file/folder> […]
Examples
# file
$ manx xcode.tsx layout.tsx edge.tsx
$ manx '*.tsx' '!xcode.tsx'
# folder
$ manx app
Pro Tip
if you want to use rm
, you can add alias rm=manx
to your .zshrc
/.bashrc
to reduce typing & safely trash files: $ rm manx.svg
.
Private thank
I offer special thanks to @sindresorhus and his cool package trash.