{"id":13446162,"url":"https://github.com/quackduck/rem","last_synced_at":"2025-04-23T01:50:05.551Z","repository":{"id":37048368,"uuid":"337733346","full_name":"quackduck/rem","owner":"quackduck","description":"Get some REM sleep knowing your files are safe","archived":false,"fork":false,"pushed_at":"2022-12-27T02:30:50.000Z","size":108,"stargazers_count":47,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-23T01:49:59.545Z","etag":null,"topics":["rem","rm","safe","trash"],"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/quackduck.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}},"created_at":"2021-02-10T13:31:55.000Z","updated_at":"2024-12-25T18:49:02.000Z","dependencies_parsed_at":"2023-01-31T02:30:57.184Z","dependency_job_id":null,"html_url":"https://github.com/quackduck/rem","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackduck%2Frem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackduck%2Frem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackduck%2Frem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quackduck%2Frem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quackduck","download_url":"https://codeload.github.com/quackduck/rem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250354294,"owners_count":21416751,"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":["rem","rm","safe","trash"],"created_at":"2024-07-31T05:00:47.361Z","updated_at":"2025-04-23T01:50:05.535Z","avatar_url":"https://github.com/quackduck.png","language":"Go","funding_links":[],"categories":["CLI Tools"],"sub_categories":[],"readme":"# Rem\n\nGet some rapid-eye-movement sleep knowing your files are safe.\n\n## What is Rem?\n\nRem is a CLI trash which makes it _ridiculously_ easy to recover files. We've all had that moment when we've deleted something we realised we shouldn't have. It sucks. Let's fix that!\n\n## Demo\n\n[![asciicast](https://asciinema.org/a/390479.svg)](https://asciinema.org/a/390479?speed=2)\n\nLet's say we have the following file structure\n```text\n.\n├── someDir\n│   └── someFile\n└── someFile\n```\n\nNext, we want to delete `someDir`. Simple!\n\n```shell\nrem someDir\n```\n\nNow it looks like this:\n```text\n.\n└── someFile\n```\nOh no! We actually needed that directory!\n```shell\nrem --undo someDir\n```\nBack to:\n```text\n.\n├── someDir\n│   └── someFile\n└── someFile\n```\nIt's really _that_ easy.\n\nYou can also delete files of the same name with no problem:\n```shell\nrem someDir/someFile someFile\n```\n\n## Installing\nBuild from source or use:\n```shell\nbrew install quackduck/tap/rem\n```\n## Uninstalling\nSimply remove the executable or use:\n```shell\nbrew uninstall rem\n```\n\n## Usage\n\n```text\nUsage: rem [-t/--set-dir \u003cdir\u003e] [--disable-copy] [--permanent | -u/--undo] \u003cfile\u003e ...\n       rem [-d/--directory | --empty | -h/--help | --version | -l/--list]\n       rem --rm-mode [options] [files]\nOptions:\n   -u/--undo              restore a file\n   -l/--list              list files in trash\n   --empty                empty the trash permanently\n   --permanent            delete a file permanently\n   -d/--directory         show path to the data dir\n   -t/--set-dir \u003cdir\u003e     set the data dir and continue\n   -q/--quiet             enable quiet mode\n   --disable-copy         if files are on a different fs, don't move by copying\n   -h/--help              print this help message\n   --version              print Rem version\n   --rm-mode              enable GNU rm compatibility mode\n                          run \"rem --rm-mode --help\" for more info\n   --                     all arguments after this are considered files\n```\n\nRem stores its data at `$XDG_DATA_HOME/rem` or `.local/share/rem` by default. Alternatively, set the data directory using `$REM_TRASH` or with the `-d` option.\n\n## Thanks\n\nThanks to [u/skeeto](https://www.reddit.com/user/skeeto/) for helping me with race conditions and design [here](https://www.reddit.com/r/golang/comments/lixr6k/rem_the_trash_cli_that_makes_it_ridiculously_easy/gn7z86z?utm_source=share\u0026utm_medium=web2x\u0026context=3)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquackduck%2Frem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquackduck%2Frem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquackduck%2Frem/lists"}