{"id":30691248,"url":"https://github.com/datsfilipe/trxsh","last_synced_at":"2026-03-16T15:41:15.057Z","repository":{"id":287792857,"uuid":"965801834","full_name":"datsfilipe/trxsh","owner":"datsfilipe","description":"Trxsh is a trash cli built in Go.","archived":false,"fork":false,"pushed_at":"2025-04-23T13:48:11.000Z","size":37,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-29T01:53:51.895Z","etag":null,"topics":["cli","go","golang","linux","trashcan"],"latest_commit_sha":null,"homepage":"","language":"Go","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/datsfilipe.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-13T23:32:15.000Z","updated_at":"2025-04-23T13:48:12.000Z","dependencies_parsed_at":"2025-04-14T00:36:01.351Z","dependency_job_id":"8ab70701-22d2-429b-9754-f4105ca9e578","html_url":"https://github.com/datsfilipe/trxsh","commit_stats":null,"previous_names":["datsfilipe/trxsh"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/datsfilipe/trxsh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datsfilipe%2Ftrxsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datsfilipe%2Ftrxsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datsfilipe%2Ftrxsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datsfilipe%2Ftrxsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datsfilipe","download_url":"https://codeload.github.com/datsfilipe/trxsh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datsfilipe%2Ftrxsh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273227449,"owners_count":25067685,"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","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","go","golang","linux","trashcan"],"created_at":"2025-09-02T03:47:00.808Z","updated_at":"2025-12-26T07:41:51.229Z","avatar_url":"https://github.com/datsfilipe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trxsh\n\n[![build](https://github.com/datsfilipe/trxsh/actions/workflows/build.yml/badge.svg)](https://github.com/datsfilipe/trxsh/actions/workflows/build.yml)\n\nTrxsh is a simple and efficient command-line trash manager written in Go. It allows you to safely delete, list, restore, and permanently remove files from your system's trash directory.\n\n### Table of Contents\n\n- [Installation](#installation)\n- [Features](#features)\n- [Usage](#usage)\n- [Trash Specification](#trash-specification)\n- [License](#license)\n\n### Installation\n\n- Arch:\n\nThe package is now in [AUR](https://aur.archlinux.org/packages/trxsh), so to install it you can use an AUR helper like `yay`:\n\n```bash\nyay -Syu trxsh\n```\n\nor go through the process manually:\n\n```bash\nsudo pacman -S --needed git base-devel\ngit clone https://aur.archlinux.org/trxsh.git\ncd yay\nmakepkg -si\n```\n\n- NixOS:\n\nFor now you can add a custom derivation to your NixOS config. Please refer to [derivation example](./examples/derivation.nix).\n\n### Features\n\n- deletion: move files to a designated trash directory instead of permanently deleting them.​\n- list: biew all files currently in the trash.​\n- restore: recover files from the trash by ID or using an interactive fzf interface.​\n- cleanup: permanently delete files in the trash (use --days N to keep recent files).​\n\n### Usage\n\n```bash\nUsage: trxsh [OPTIONS] [FILES]\nOptions:\n  --fzf, -f        : Restore files using fzf\n  --list, -l       : List files in trash\n  --restore, -r ID : Restore file by ID\n  --cleanup, -c    : Empty trash (use --days N to keep recent files)\n  --dir-sizes, -s  : Show directory sizes\n  --help, -h       : Show this help\n```\n\n### Trash Specification\n\nI've tried implementing the basics from [freedesktop.org trash specification](https://specifications.freedesktop.org/trash-spec/1.0/), but I haven't checked if eveything meets the spec. If you feel like this is an important matter, please feel free to address any issue you find with a proper PR, or to point out and I can work on that whenever I have some spare time.\n\n### License\n\nThis project is licensed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatsfilipe%2Ftrxsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatsfilipe%2Ftrxsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatsfilipe%2Ftrxsh/lists"}