Minor fixes

This commit is contained in:
Austen Adler 2016-03-28 12:36:55 -04:00
parent 5a9904b1e3
commit d56684b006

View File

@ -143,7 +143,7 @@ if test -f /etc/gentoo-release; then
cd ->/dev/null cd ->/dev/null
echo '\a' echo '\a'
} }
alias upgrade='sudo emerge --update --newuse --with-bdeps=y --deep --verbose -t -a --keep-going=y --verbose-conflicts -A @world;echo \\a' alias upgrade='sudo emerge --update --newuse --with-bdeps=y --deep --verbose --tree --keep-going=y --verbose-conflicts --alert --ask @world;echo \\a'
elif test -f /etc/lsb-release; then elif test -f /etc/lsb-release; then
# Ubuntu # Ubuntu
alias install='sudo apt-get --show-progress install' alias install='sudo apt-get --show-progress install'
@ -200,10 +200,13 @@ bp(){
apush(){ apush(){
adb push $* & pv -d $! adb push $* & pv -d $!
} }
ltar(){
tar -cf - $@|pv -WcN tar|xz|pv -WcN lzma
#tar -cf - $@|pv -WcN tar -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|gzip|pv -WcN dest
#tar -cf - $@|pv -WcN tar -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|gzip|pv -WcN dest
}
ctar(){ ctar(){
tar -cf - $@|pv -WcN tar|gzip|pv -WcN gzip tar -cf - $@|pv -WcN tar|gzip|pv -WcN gzip
#tar -cf - $@|pv -WcN tar -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|gzip|pv -WcN dest
#tar -cf - $@|pv -WcN tar -s $(echo $(du -sb $@|awk '{print $1}'|tr '\n' '+')0|bc)|gzip|pv -WcN dest
} }
offline(){ offline(){
if [ ! -z "$@" ] ; then if [ ! -z "$@" ] ; then