From: Ian Kelling Date: Wed, 6 Nov 2019 04:53:49 +0000 (-0500) Subject: minor fixes X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=2df710615e0dd7243d8a05a8a58a9f8ec810433f;hp=929bcfbc41e050d69b48405ac8bb6d03af930d95 minor fixes --- 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