Skip to content

Rewind your filesystem to before you messed up

Notifications You must be signed in to change notification settings

debruinf/rewind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rewind

Rewinds your working directory to before you messed up.

Rewind removes all files in the current directory that where changed/added in the last X seconds (60 default).

Very helpful in case of a misplaced git clone, unzip, download yarn install.

Rewind will always ask to confirm the removal of files unless an explicit flag is set.

Usage

Basic usage:

$ rewind
...
...
will be removed. Continue (yes to continue): _

Prints the files that will be removed and prompts the user to confirm. Only typing yes will result in a rewind. Default rewinds to 60 seconds (see below for options).

Flags and options

-t, --time <seconds> // rewind time
-f, --force // don't ask to confirm (BE CAREFUL)

See also

$ rewind --help

Installation

  • From github
    • git clone https://github.com/debruinf/rewind
  • Get it from crates.io
    • cargo install rewind

Tested environments

tested:

  • MacOS

coming soon:

  • ubuntu
  • debian

Future development

  • Directories
  • Recursive rewind
  • Rewind window

About

Rewind your filesystem to before you messed up

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages