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.
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).
-t, --time <seconds> // rewind time
-f, --force // don't ask to confirm (BE CAREFUL)
See also
$ rewind --help
- From github
git clone https://github.com/debruinf/rewind
- Get it from crates.io
cargo install rewind
tested:
- MacOS
coming soon:
- ubuntu
- debian
- Directories
- Recursive rewind
- Rewind window