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 }