{"id":37160939,"url":"https://github.com/westleyr/srm","last_synced_at":"2026-01-14T19:09:22.144Z","repository":{"id":57561257,"uuid":"228753722","full_name":"WestleyR/srm","owner":"WestleyR","description":"Safe remove ('rm') command with caching and undo/recover","archived":false,"fork":false,"pushed_at":"2025-02-01T20:54:14.000Z","size":2614,"stargazers_count":8,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T21:34:32.710Z","etag":null,"topics":["cache","golang","remove-with-undo","rm","safe","safe-rm","srm","undo"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause-clear","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WestleyR.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}},"created_at":"2019-12-18T03:54:34.000Z","updated_at":"2025-02-01T20:54:18.000Z","dependencies_parsed_at":"2024-06-20T11:17:46.626Z","dependency_job_id":"6f62af27-3fbf-4050-8b54-6d5623674fc4","html_url":"https://github.com/WestleyR/srm","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/WestleyR/srm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestleyR%2Fsrm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestleyR%2Fsrm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestleyR%2Fsrm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestleyR%2Fsrm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WestleyR","download_url":"https://codeload.github.com/WestleyR/srm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WestleyR%2Fsrm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28431553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cache","golang","remove-with-undo","rm","safe","safe-rm","srm","undo"],"created_at":"2026-01-14T19:09:21.428Z","updated_at":"2026-01-14T19:09:22.138Z","avatar_url":"https://github.com/WestleyR.png","language":"Go","readme":"# Safe Remove (`rm`) command with cache/undo\n\nThis is a `rm` command imitation, but without actually removing anything, only\nmoving it into cache (`~/.cache/srm3`). By doing this, you can recover\naccidentally-removed files.\n\n## Install\n\nIf you have go installed, then you can run:\n\n```\nGOPROXY=direct go install github.com/WestleyR/srm@main\n```\n\nOr via clone:\n\n```\ngit clone https://github.com/WestleyR/srm\ncd srm/\nmake\nsudo make install # Or without root: 'make install PREFIX=${HOME}/.local'\n```\n\n### Aliasing\n\nOptional to add this to your `~/.bashrc` or `~/.bash_profile`:\n\n```\nalias rm=\"srm\"\n```\n\n### Linking\n\nInstead or addition to aliasing, you can symlink srm -\u003e rm in a first-search\npath directory.\n\n```\n$ echo $PATH\n/usr/local/sbin:/usr/local/bin ...\n\n# ln -s /usr/local/bin/srm /usr/local/sbin/rm\n```\n\nThis way, `rm` will always run `srm`, even for other users. You can always run\nthe normal `rm` by calling `/bin/rm ...`.\n\n## Disclaimer\n\nThis is not designed to be a foolproof rm command, you still need to be careful.\n\n## License\n\nThis project is licensed under the terms of The Clear BSD License. See the\n[LICENSE file](./LICENSE) for more details.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestleyr%2Fsrm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwestleyr%2Fsrm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwestleyr%2Fsrm/lists"}