sorin-ionescu / prezto

The configuration framework for Zsh
MIT License
13.98k stars 4.49k forks source link

osx: Add trash function #2070

Closed mattmc3 closed 6 months ago

mattmc3 commented 9 months ago

Proposed Changes

There's a bunch of outdated or overcomplicated/unmaintained cli trash utilities for macOS. This very simple and useful Zsh trash function uses oascript to put files in the trash.

Conflicts

If a user has already installed one of the many (unmaintained?) trash apps from homebrew, having a Zsh trash function would override them. If that's a concern the Prezto maintainers have, this function could be renamed.

They are:

indrajitr commented 9 months ago

Overall aligned with the idea. Let me review it later this week.

indrajitr commented 6 months ago

Let's roll with trash helper for now. We do have cli conflicts with a few aliases anyway (and there are ways to unfunction and unalias them by end users).