Skip to content

Interligo/safe-remove-command-for-gitbash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Safe remove (srm)

Thanks @dshubenok for help. Without him this great script will never be finished.

What is this:

It is a simple script which helps remove file safely. The closest analogue is 'rm' from Git system.

How it works:

This script will compress the file and then remove it into recycle bin (if recycle directory does not exist, the script will create that directory). The recycle bin will automatically delete the files, which are stored there for 7 (seven) days. So, you have 7 (seven) days to change your mind about deleting some files.

Installation:

  1. Create new directory 'bin' on your home page (using mkdir ~/bin).
  2. Create new file '.bash_profile' (using touch ~/.bash_profile) or change it if it's already exist.
  3. Complete file '.bash_profile' by the text export PATH="${PATH}:~/bin".
  4. Write source ~/.bash_profile in command line.
  5. Paste 'srm' file from this repo to '~/bin'.
  6. Write chmod +x srm in command line.

OR

  1. Сlone the repo.
  2. cd into project folder.
  3. Write chmod +x install in command line.
  4. Run ./install script.

Using:

You should write srm <filename>, where is the name of the file you want to delete.

About

Simple script which helps remove files safely

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages