shell-safe-rm icon indicating copy to clipboard operation
shell-safe-rm copied to clipboard

Safety scope

Open Yzrsah opened this issue 6 years ago • 0 comments

Safety scope

$ alias rm="safe-rm --scope=~"
$ rm -rf /
rm: target '/' skipped, unsafe directory scope
$ alias rm="safe-rm --scope=."
$ rm -rf ./foo
$ rm -rf bar/baz
$ rm -rf ../
rm: target '../' skipped, unsafe directory scope

Yzrsah avatar Mar 01 '19 14:03 Yzrsah