From 2df710615e0dd7243d8a05a8a58a9f8ec810433f Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 5 Nov 2019 23:53:49 -0500 Subject: [PATCH] minor fixes --- brc | 6 ++++++ brc2 | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/brc b/brc index 9ee0777..74cda5b 100644 --- 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 3f0e9ec..a3ab32a 100644 --- 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 -- 2.30.2