@@ -44,14 +44,6 @@ In other words when you run `rm -rf file directory/`
4444You will have files/dir the trash first,
4545then you can decide to delete or clean them later on.
4646
47- # Really Remove
48-
49- If you don't really care to move it to Trash first.
50-
51- Use ` rm --rm ` , e.g. ` rm --rm file directory/ `
52-
53- Or, you can just use ` /bin/rm ` directly.
54-
5547# Additional features
5648
5749```
@@ -63,24 +55,51 @@ rm --empty-trash Empty all trash directories
6355rm --show-trash-path Display all trash directory paths
6456```
6557
58+ # Really Remove
59+
60+ If you don't really care to move it to Trash first.
61+
62+ rm-safely provide bypass to your OS rm via ` --rm ` option.
63+
64+ That means, use ` rm --rm `
65+
66+ For examples:
67+
68+ - remove files and directy with OS rm.
69+
70+ ` rm --rm file directory/ `
71+
72+ - see the OS rm --help
73+
74+ ``` rm --rm --help
75+ /bin/rm: illegal option -- -
76+ usage: rm [-f | -i] [-dIPRrvWx] file ...
77+ unlink [--] file
78+ ```
79+
80+ ` --rm ` is nothing special other than execute ` /bin/rm ` from current shell.
81+
82+ Or, you could just ` /bin/rm ` directly.
83+
6684# Uninstall
6785
6886` curl -fsSL https://raw.githubusercontent.com/zdk/rm-safely/main/rm-safely | bash -s uninstall `
6987
70- # Appendix
71-
72- > [ !IMPORTANT]
73- >
74- > In case of switching to root user,
75- >
76- > 1 . Please keep in mind that _ the rm-safely alias is installed in current user only_ .
77- > 2 . Always use ` sudo -s ` to keep current shell alias to root prompt, then run ` rm ` in the next step.
78- >
79- > Otherwise, chance you will bypass this alias and execute standard ` /bin/rm ` as your own risk.
80-
81- > [ !NOTE]
82- >
83- > - Main goal of rm-safely is to write it in a pure shell script.
84- > - Alternative tools:
85- > - https://github.com/MilesCranmer/rip2 (rust)
86- > - https://github.com/Byron/trash-rs (rust)
88+ # Notes
89+
90+ - Main goal of rm-safely is to write it in a pure shell script
91+ as a gateway and a suppliment to rm, not a replacement.
92+
93+ - Alternative tools:
94+
95+ - https://github.com/MilesCranmer/rip2 (rust)
96+ - https://github.com/Byron/trash-rs (rust)
97+ - https://github.com/kaelzhang/shell-safe-rm (bash)
98+ - https://github.com/hitzhangjie/rm (go)
99+
100+ [ Important Reminder] ,
101+
102+ Regarding the normal bahaviour of unix alias,
103+
104+ - Please keep in mind, _ the rm-safely alias is available in current user only_ .
105+ - So please always use ` sudo -s ` to switch to root user, then run ` rm ` in the next step.
0 commit comments