CLI to create an opinionated temporary folder structure, automatically cleanup after they're expired.
expwill create temp folderexploreand to soon-to-be-deleted folderexpire.- files/folders live inside
explorewill be moved toexpire7 days after its last opened. - and then after next 7 days all files/folder will be deleted from
expirefolder. - The config file
.expwill be located atEXP_PATHWhen you runexp initfor the first time it will be created automatically. normally you don't have to edit this file. it is being used only for checkingEXP_PATH.
## download binary first
$ curl -LSfs https://japaric.github.io/trust/install.sh | \
sh -s -- --git karnpapon/exp
## check whether exp is installed.
exp -h
cd to-your-target-path && exp init- put returned string (eg.
export EXP_PATH=/your/target/path) into.profileor.zprofile(for zsh users) depends on what shell you're using, normally default would be.profile. - add
expcommand to your.profileor.zprofile. - everytime terminal is opened,
expwill manage to check if any folder/file should be moved or deleted.
exp init= to createexploreandexpirefolder and.exp(config file).exp= to check if file/folder is valid (ready to move/delete).
- add cli for setting dir.
- create config file.
- push noti.
- cli for manually remove init file.
- details screenshot after folder has been deleted.
- expire date configurable.
- cleaning up setup folder when EXP_PATH change.
- error handling.
- config folder based on .gitignore
inspired by cargo-temp
