From 6b85cb68a9583125a4dd1396e1cf25beb014c336 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Mon, 23 Feb 2015 13:12:42 -0500 Subject: [PATCH] Added really neat ctar function --- shells/zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shells/zshrc b/shells/zshrc index 5bc05a0..166b45a 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -134,6 +134,11 @@ alias -g L="2>&1|less" alias -g G='|& ag' alias -g AW='austenwares.com' export FZF_COMPLETION_OPTS='--no-mouse -m -1 -x' +function ctar(){ + DST=$1 + shift + tar -cf - $@|pv -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|gzip>$DST +} function pcat(){ pygmentize -f terminal "$1" | less -R }