From f7d758dfb1188d5ded306b2ab04b5750f71bb933 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Mon, 6 Mar 2017 02:39:48 -0800 Subject: [PATCH] fix picky and unused --- README.md | 7 +++++-- home/-shrc | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 079465d..e2c8855 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,11 @@ rot13 with rotated numbers as well. unwraps text that was wrapped using double-newlines as spacing, e.g. this readme file. +### double + +prints every line twice. +prints every line twice. + ### picky + unused attempts to print non-standard packages that were installed on an arch linux box, @@ -99,8 +104,6 @@ so you can reinstall them later on a fresh installation. `unused` will print unused packages instead. -this seems to be broken since the functionality of `tee -` changed. - ### makepkgf + rakef make the freakin' package! diff --git a/home/-shrc b/home/-shrc index cc5f509..bcda111 100644 --- a/home/-shrc +++ b/home/-shrc @@ -125,9 +125,10 @@ alias bomb='uconv -f utf-8 -t utf-8 --add-signature' alias cleanse='tr -cd "\11\12\15\40-\176"' alias rot13='tr "A-Za-z0-9" "N-ZA-Mn-za-m5-90-4"' alias unwrap='awk '\''BEGIN{RS="\n\n";FS="\n"}{for(i=1;i<=NF;i++)printf "%s ",$i;print "\n"}'\' +alias double='awk "{print;print}"' # -alias picky='{ pacman -Qgq base base-devel | tee -; pacman -Qtnq; } | sort | uniq -u' -alias unused='{ pacman -Qt; pacman -Qe | tee -; } | sort | uniq -u' +alias picky='{ pacman -Qgq base base-devel xorg xorg-drivers xfce4 | double; pacman -Qeq; } | sort | uniq -u' +alias unused='{ pacman -Qtq; pacman -Qeq | double; } | sort | uniq -u' # alias makepkgf='sudo -u $USER makepkg -Af --skipchecksums --skippgpcheck' alias rakef='rake && gem build *.gemspec && gem install *.gem'