{"id":22435057,"url":"https://github.com/leejones/trash","last_synced_at":"2025-08-01T14:31:26.670Z","repository":{"id":59157984,"uuid":"580053","full_name":"leejones/trash","owner":"leejones","description":"A trash can for the command line.","archived":false,"fork":false,"pushed_at":"2024-03-25T21:30:36.000Z","size":56,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-26T08:03:31.076Z","etag":null,"topics":["cli","file-utility","files"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leejones.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2010-03-26T01:55:05.000Z","updated_at":"2023-08-15T14:19:32.000Z","dependencies_parsed_at":"2024-03-25T22:44:03.186Z","dependency_job_id":null,"html_url":"https://github.com/leejones/trash","commit_stats":{"total_commits":48,"total_committers":2,"mean_commits":24.0,"dds":0.3125,"last_synced_commit":"23a7b4b18d333ee6460b6a2aba128ce073cb0410"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leejones%2Ftrash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leejones%2Ftrash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leejones%2Ftrash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leejones%2Ftrash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leejones","download_url":"https://codeload.github.com/leejones/trash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228383640,"owners_count":17911330,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","file-utility","files"],"created_at":"2024-12-05T23:12:21.595Z","updated_at":"2024-12-05T23:12:22.556Z","avatar_url":"https://github.com/leejones.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trash\n\nWhen it's too hard to say goodbye... an alternative to `rm`.\n\nA simple command line utility to move files/folders to a \"trash\" folder before deleting them.\n\n## Usage\n\nFrom the command line:\n\n```shell\ntrash [file/directory name(s)]\n# example:\ntrash potentially-important-file.txt\ntrash this-folder that-folder some-random-file.txt\n```\n\nHandles multiple files with the same name\n\n```shell\ntrash ~/Documents/Groceries/shopping-list.txt\ntrash ~/Documents/Christmas/shopping-list.txt\ntrash ~/Documents/AutoParts/shopping-list.txt\n```\n\nThe trash will contain:\n\n```shell\nshopping-list.txt     # originally ~/Documents/Groceries/shopping-list.txt\nshopping-list01.txt   # originally ~/Documents/Christmas/shopping-list.txt\nshopping-list02.txt   # originally ~/Documents/AutoParts/shopping-list.txt\n```\n\nYou will find the files that you've trashed in `~/.Trash`.\n\n## Installation\n\n```shell\ngem install trash\n```\n\n## Contributors\n\n* [ericmathison](https://github.com/ericmathison) (Eric Mathison)\n* [brian-davis](https://github.com/brian-davis) (Brian Davis)\n\n## Note on Patches/Pull Requests\n\n* Fork the project.\n* Make your feature addition or bug fix.\n* Add tests for it. This is important so I don't break it in a\n  future version unintentionally.\n* Commit, do not mess with rakefile, version, or history.\n  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)\n* Send me a pull request. Bonus points for topic branches.\n\n## Releasing a new version\n\n* Start a Docker container:\n\n    ```shell\n    docker run --rm -it --volume=\"${PWD}:/app\" --workdir /app ruby:2.7 bash\n    ```\n\n* Install dependencies:\n\n    ```shell\n    bundle install\n    ```\n\n* Bump the version in the `VERSION` file.\n* Build the gem:\n\n    ```shell\n    gem build trash.gemspec\n    ```\n\n* Check that it's valid by installing it locally:\n\n    ```shell\n    gem install \"./trash-$(cat VERSION).gem\"\n    ```\n\n* Publish it:\n\n    ```shell\n    GEM_HOST_API_KEY=TODO gem push \"trash-$(cat VERSION).gem\"\n    ```\n\n* Commit the changes in Git.\n\n    ```shell\n    git add -p \u0026\u0026 git commit --message \"Bump version to v$(cat VERSION)\"\n    ```\n\n* Tag it:\n\n    ```shell\n    git tag \"v$(cat VERSION)\" \u0026\u0026 git push origin \"v$(cat VERSION)\"\n    ```\n\n## Copyright\n\nCopyright (c) 2010 Lee Jones. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleejones%2Ftrash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleejones%2Ftrash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleejones%2Ftrash/lists"}