Added really neat ctar function
This commit is contained in:
parent
472324bb76
commit
6b85cb68a9
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user