From b4f6a624f2f374bb1a3c42ae559c332c85813135 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Wed, 9 Dec 2015 13:01:35 -0500 Subject: [PATCH] Fixed ctar (removed du), made rsh non case sensitive --- shells/zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shells/zshrc b/shells/zshrc index 960f428..044927a 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -43,7 +43,7 @@ function rsh(){ cat /home/stonewareslord/syncthing/shared/ips return 1 fi - ADDR=$(cat /home/stonewareslord/syncthing/shared/ips | sed -rne "s/^$1: //p") + ADDR=$(cat /home/stonewareslord/syncthing/shared/ips | sed -rne "s/^$1: //pi") shift if [ -z $ADDR ] ; then echo "Hostname not found" @@ -142,7 +142,8 @@ alias -g L="2>&1|less" alias -g G='|& ag' export FZF_COMPLETION_OPTS='--no-mouse -m -1 -x' function ctar(){ - 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|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 } function offline(){