ctar fixes

This commit is contained in:
Austen Adler 2015-04-19 16:47:48 -04:00
parent 2599e00c87
commit da69b5a933

View File

@ -123,7 +123,7 @@ alias -g G='|& ag'
alias -g AW='austenwares.com'
export FZF_COMPLETION_OPTS='--no-mouse -m -1 -x'
function ctar(){
tar -cf - $@|pv -cN tar -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|pv -cN gzip|gzip|pv -cN dest
tar -cf - $@|pv -WcN tar -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|pv -WcN gzip|gzip|pv -WcN dest
}
function pcat(){
pygmentize -f terminal "$1" | less -R