various improvements
[distro-setup] / brc
diff --git a/brc b/brc
index 5df2c27211dd13c6c8acb7239a2d71ea8fdef1e7..6ea6aad496a87ba5219f4755c2424864478bfe94 100644 (file)
--- 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
 }
@@ -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 "<graphics.*type='spice'" | \
        sed -rn "s/.*port='([0-9]+).*/\1/p"
 EOF
-        )
+      )
   if [[ $port ]]; then
     spicy -h $1 -p $port
   else
@@ -1898,9 +1906,10 @@ testexim() {
   # note, for exim daemon, you can turn on debug options by
   # adding -d, etc to COMMONOPTIONS in
   # /etc/default/exim4
-  exim -d -t <<'EOF'
+#  exim -d -t <<'EOF'
+  exim -i 'test@zroe.org, t2@zroe.org'  <<'EOF'
 From: ian@iankelling.org
-To: root@lists0p.fsf.org
+To: test@zroe.org, t2@zroe.org
 Subject: Testing Exim
 
 This is a test message.
@@ -1944,7 +1953,8 @@ tu() {
   if [[ -e $1 && ! -w $1 || ! -w $(dirname "$1") ]]; then
     s=s;
   fi
-  $s teeu "$@"
+  # full path for using in some initial setup steps
+  $s /a/exe/teeu "$@"
 }
 
 tx() { # toggle set -x, and the prompt so it doesnt spam
@@ -2316,13 +2326,17 @@ path_add --end $HOME/.cargo/bin
 
 # taken from default changes to bashrc and bash_profile
 path_add --end $HOME/.rvm/bin
+path_add --end $HOME/.gem/ruby/2.3.0/bin
 
 # shellcheck disable=SC1090
 [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
 
 export BASEFILE_DIR=/a/bin/fai-basefiles
 
-export ANDROID_HOME=/opt/android
+#export ANDROID_HOME=/a/opt/android-home
+# https://f-droid.org/en/docs/Installing_the_Server_and_Repo_Tools/
+#export USE_SDK_WRAPPER=yes
+#PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
 
 # didnt get drush working, if I did, this seems like the
 # only good thing to include for it.