From 83a04d635dcbef85936e10e188ef744bd18ca9f0 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 10 Oct 2016 08:40:26 -0700 Subject: [PATCH] add wipe function for noisy programs --- home/-shrc | 2 +- home/zshrc | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/home/-shrc b/home/-shrc index 8b941cb..3a24665 100644 --- a/home/-shrc +++ b/home/-shrc @@ -137,7 +137,7 @@ alias rakef='rake && gem build *.gemspec && gem install *.gem' # alias profile="CPUPROFILE=./a.pprof LD_PRELOAD=/usr/lib/libprofiler.so" -function trash() { +trash() { dd status=none if=/dev/random bs=1 count="$1" } diff --git a/home/zshrc b/home/zshrc index b6bf556..e1ed500 100644 --- a/home/zshrc +++ b/home/zshrc @@ -125,7 +125,13 @@ alias -g OMFG="1>/dev/null" alias -g STFU="2>/dev/null" alias -g WHOA='${whoa[@]}' -alias sc="$HOME/sh/sc" +wipe() { + clear + clear # twice because mintty is weird + echo "\e[30m\e[107m" + printf "*%.0s" {1..$COLUMNS} + echo "\e[0m\n" +} for x in ack cd cp ebuild gcc gist grep ln man mkdir mv rm alias $x="nocorrect $x"