Skip to content

Commit

Permalink
#16: README.md: fixes typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Dec 13, 2024
1 parent 33934e8 commit 8cd03b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ export SAFE_RM_PERM_DEL_FILES_IN_TRASH=yes

### Protect Files And Directories From Deleting

If you want to protect some certain files or directories from deleting by mistake, you could create a `.gitignore` under `~/.safe-rm/` in the file, you could write [.gitignore rules](https://git-scm.com/docs/gitignore)
If you want to protect some certain files or directories from deleting by mistake, you could create a `.gitignore` file under the `"~/.safe-rm/"` directory, you could write [.gitignore rules](https://git-scm.com/docs/gitignore) inside the file.

If a path is matched by the rules that defined in `~/.safe-rm.protected`, the path will be protected and could not be deleted by `safe-rm`
If a path is matched by the rules that defined in `~/.safe-rm/.gitignore`, the path will be protected and could not be deleted by `safe-rm`

For example, in the `~/.safe-rm/config`
For example, in the `~/.safe-rm/.gitignore`

```.gitignore
/path/to/be/protected
Expand Down

0 comments on commit 8cd03b9

Please sign in to comment.