minor fixes
authorIan Kelling <ian@iankelling.org>
Wed, 6 Nov 2019 04:53:49 +0000 (23:53 -0500)
committerIan Kelling <ian@iankelling.org>
Wed, 6 Nov 2019 04:53:49 +0000 (23:53 -0500)
brc
brc2

diff --git a/brc b/brc
index 9ee0777cf06f0b78cbcbcf00c615acc06e0e2d41..74cda5b1be142b813c25bae225d682bb271bcc99 100644 (file)
--- a/brc
+++ b/brc
@@ -12,6 +12,12 @@ elif [[ -s ~/.iank/err ]]; then
   source ~/.iank/err
 fi
 
+# In t8, it runs clear_console for login shells by default. I don't want
+# my console cleared. And linux ttys get cleared without this.
+if shopt login_shell >/dev/null && [[ -e ~/.bash_logout ]]; then
+  rm ~/.bash_logout
+fi
+
 # for testing error catching:
 # t2() {
 #   echo t2
diff --git a/brc2 b/brc2
index 3f0e9ec06504d50d2f43289e9ebf2a423196a0be..a3ab32a872c189c09056f02703bf9f22b5d65642 100644 (file)
--- a/brc2
+++ b/brc2
@@ -121,7 +121,7 @@ bbk() { # btrbk wrapper
   fi
   # run latest
   install-my-scripts
-  btrbk-run "$@" |& pee cat "systemd-cat -t btrbk-run"
+  unbuffer btrbk-run "$@" |& pee cat "systemd-cat -t btrbk-run"
   if $active; then
     ser enable btrbk.timer
   fi
@@ -138,14 +138,14 @@ bpull() {
   c /
   # run latest
   install-my-scripts
-  switch-mail-host pull $1 |& pee cat "systemd-cat -t switch-mail-host"
+  ubuffer switch-mail-host pull $1 |& pee cat "systemd-cat -t switch-mail-host"
 }
 bpush() {
   [[ $1 ]] || return 1
   c /
   # run latest
   install-my-scripts
-  switch-mail-host push $1 |& pee cat "systemd-cat -t switch-mail-host"
+  ubuffer switch-mail-host push $1 |& pee cat "systemd-cat -t switch-mail-host"
 }
 lipush() {
   # note, i had --delete-excluded, but that deletes all files in --exclude-from on
@@ -283,7 +283,7 @@ dup() {
       ran_d=true
       ;;&
     *DISTRO-END!*|*DISTRO!*)
-      pushd
+      pushd /
       /b/ds/distro-end || return $?
       popd
       ran_d=true