macmade / trash

macOS command line tool to move files to trash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trash

Build Status Coverage Status Issues Status License Contact
Donate-Patreon Donate-Gratipay Donate-Paypal

trash

About

trash is command-line tool for macOS, written in Swift, that moves files to the current user's trash folder.

It is compatible with the macOS rm command, so you can alias the later, and no longer worry about permanently deleting your precious files. 😉

Installation

trash can be installed with Homebrew:

brew install --HEAD macmade/tap/trash

Shell alias

You can alias the default rm command to trash, using the following line into your shell profile file:

if [ -f /usr/local/bin/trash ]; then alias rm="/usr/local/bin/trash"; fi

License

trash is released under the terms of the MIT license.

Repository Infos

Owner:          Jean-David Gadina - XS-Labs
Web:            www.xs-labs.com
Blog:           www.noxeos.com
Twitter:        @macmade
GitHub:         github.com/macmade
LinkedIn:       ch.linkedin.com/in/macmade/
StackOverflow:  stackoverflow.com/users/182676/macmade

About

macOS command line tool to move files to trash

License:MIT License


Languages

Language:Swift 100.0%