From 60e12d85c103d132ab92683629d0229894c2d0fa Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 5 Mar 2019 23:23:05 +0100 Subject: [PATCH] New "trash" plugin (for macOS) --- plugins/trash/README.md | 8 ++++++++ plugins/trash/trash.zshrc | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 plugins/trash/README.md create mode 100644 plugins/trash/trash.zshrc diff --git a/plugins/trash/README.md b/plugins/trash/README.md new file mode 100644 index 0000000..2818420 --- /dev/null +++ b/plugins/trash/README.md @@ -0,0 +1,8 @@ +## trash + +Setup *trash*(1), a tool moving files and folders to the "trash" of macOS. + +### Command Aliases + +- `rm`: `trash -F` - map *rm*(1) to *trash*(1) and use the Finder to move files + to the trash, so that you can use Finder's "put back" feature. diff --git a/plugins/trash/trash.zshrc b/plugins/trash/trash.zshrc new file mode 100644 index 0000000..07ca914 --- /dev/null +++ b/plugins/trash/trash.zshrc @@ -0,0 +1,7 @@ +# AX-ZSH: Alex' Modular ZSH Configuration +# trash.zshrc: Setup trash(1) + +# Make sure that "trash(1)" is installed +(( $+commands[trash] )) || return + +alias rm='trash -F' -- 2.39.2