From dc44f2f3985cc9cfe8cf6d1a808908e3f4a1cde6 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Mon, 21 Aug 2017 15:04:19 -0400 Subject: [PATCH] Disable rm and rmr --- aliases | 6 +++++- bin/recycle-bin.exe | Bin 0 -> 20480 bytes 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 bin/recycle-bin.exe diff --git a/aliases b/aliases index bbeb8fe..5624da3 100644 --- a/aliases +++ b/aliases @@ -14,11 +14,13 @@ if [[ $platform == 'Linux' ]]; then alias prr='pacman -Rdd' alias pss='sudo pacman -Syu' alias pu='yaourt -U' + # TODO add a trash alias for trash-cli? elif [[ $platform == 'Darwin' ]]; then alias l='ls -laG' alias ls='ls -laG' alias ll='ls -lG' + # TODO add a trash alias for trash-cli? or brew install rmtrash elif [[ "${platform,,}" == *'ming'* ]]; then # convert to lowercase then compare with wildcard alias python='winpty python.exe' @@ -26,6 +28,7 @@ elif [[ "${platform,,}" == *'ming'* ]]; then # convert to lowercase then compare alias l='ls -ahg --color' alias ls='ls -ahg --color' + alias trash='recycle-bin.exe ' fi alias c='cd' @@ -107,7 +110,8 @@ function reload { } alias rl='reload' -alias rmr='rm -rf' +alias rm='echo "use trash command instead!"' +alias rmr='echo "use trash command instead!"' alias restart='sudo shutdown now -r' alias s='cd ~/.ssh' alias sc='vim ~/.ssh/config' diff --git a/bin/recycle-bin.exe b/bin/recycle-bin.exe new file mode 100644 index 0000000000000000000000000000000000000000..449f62995fd8b5ec53688faf341d0c23c4a9e04e GIT binary patch literal 20480 zcmeHv4SZY0mG8)w94E0Or^H|&flF#ryF`v;$H5LZ$cY@TgA$zB39t}sS-x@vvSp+z z+bJnHl?~ipL{p$_S-Rb{(3btZZ8zmna01;`KEMeS)`X7&DUbrC*O<`o6_S)i?|Q!0Sk!3O+O}{W!gfL`1e#o}@NTfgGX=6=oIVARibVRCBV{~p=1!KYA+DG6Z9^gP$r(&Q-J~}X zjrf7{zD)wjL0W;7@sQq(?Eh$V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