From 02aa36662262473cfe782d867483737981ae61c3 Mon Sep 17 00:00:00 2001 From: "David Todd (c0de)" Date: Wed, 16 May 2018 16:18:53 -0500 Subject: [PATCH] add poor man's shred --- shell/aliases | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell/aliases b/shell/aliases index 59e9796..a50f960 100644 --- a/shell/aliases +++ b/shell/aliases @@ -16,3 +16,5 @@ alias ipa='ip addr|grep inet' alias cls='clear;ls' alias rvi='sudo -E vim' +# Use `shred` if it exists, or just `rm -P` +type "$shred" > /dev/null || alias shred='rm -P'