Git Product home page Git Product logo

trash's Introduction

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

trash's People

Contributors

macmade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

trash's Issues

file names that begin with a dash and ram disk

Hi
make ramdisk
touch -- -file
trash -- -file
Unrecognized argument --, does not work like rm
trash -file
works but like rm - the file is deleted and does not fit in the trash bin
Thanks.

Tested on Catalina?

If you've tested this on macOS 10.15 and confirm it works well for development with git please drop a line or emoji bomb here so we know. Thanks!

Support macOS "Put Back" feature?

Hi, when deleting files through Finder (and other methods I assume), there is the option to "Put Back" files in Trash to their original location. Could trash support this, possibly as a flag? Thanks!

File doesn't show up in trash

Hey there,
When I use this the files don't show up in trash but are just gone. I'm on macOS 10.13. Where exactly are they moved to? Has the trash path changed maybe?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.