Added really neat ctar function

This commit is contained in:
Austen Adler 2015-02-23 13:12:42 -05:00
parent 472324bb76
commit 6b85cb68a9

View File

@ -134,6 +134,11 @@ alias -g L="2>&1|less"
alias -g G='|& ag' alias -g G='|& ag'
alias -g AW='austenwares.com' alias -g AW='austenwares.com'
export FZF_COMPLETION_OPTS='--no-mouse -m -1 -x' 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(){ function pcat(){
pygmentize -f terminal "$1" | less -R pygmentize -f terminal "$1" | less -R
} }