X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc;h=41d7d8ab7c79c4e607d4f6a9da78fb0db47f2e6a;hb=1a9542b37443a84e55e175db8ddef4e99f434fb5;hp=5df2c27211dd13c6c8acb7239a2d71ea8fdef1e7;hpb=b1c29177fe76f8f2a557f7f36c987df3ef2a6cb4;p=distro-setup diff --git a/brc b/brc index 5df2c27..41d7d8a 100644 --- a/brc +++ b/brc @@ -426,6 +426,14 @@ bpush() { install-my-scripts switch-mail-host $HOSTNAME $1 } +lipush() { + rsync $@ --delete-excluded -ahviSAXPH --specials --devices --delete --relative \ + --exclude-from=/p/c/li-rsync-excludes /a/bin /a/exe /a/h /a/c /p/c/machine_specific/li /a/opt/{emacs,emacs-debianstable,mu} root@li:/ +} +lipushnoe() { + rsync $@ --delete-excluded -ahviSAXPH --specials --devices --delete --relative \ + --exclude-from=/p/c/li-rsync-excludes /a/bin /a/exe /a/h /a/c /p/c/machine_specific/li root@li:/ +} btc() { @@ -684,8 +692,8 @@ fa() { done < <(find "$@" -print0); } -faf() { # find all files - find -L $1 -not \( -name .svn -prune -o -name .git -prune \ +faf() { # find all files. use -L to follow symlinks + find $@ -not \( -name .svn -prune -o -name .git -prune \ -o -name .hg -prune -o -name .editor-backups -prune \ -o -name .undo-tree-history -prune \) -type f 2>/dev/null } @@ -1035,7 +1043,7 @@ rg() { hstatus() { # do git status on published repos - cd /a/bin/githtml + c /a/bin/githtml for x in *; do cd $(readlink -f $x)/.. status=$(i status -s) || pwd @@ -1265,7 +1273,7 @@ mbenable() { [[ -e $src ]] || { set +x; return 1; } mv -T $src $dst || { set +x; return 1; } ln -s -T $dst $src - /a/exe/lnf /p/.mu ~ + /a/exe/lnf /m/.mu ~ mu index --maildir=/m/4e set +x } @@ -1554,7 +1562,7 @@ rspicy() { # usage: HOST DOMAIN sudo virsh dumpxml $2|grep "