X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;ds=sidebyside;f=brc;h=74cda5b1be142b813c25bae225d682bb271bcc99;hb=2df710615e0dd7243d8a05a8a58a9f8ec810433f;hp=556c5ef04e743bb2208cc54dd7ae3d7cd1569cbe;hpb=6061d88c7d5beda3e974943eb8676f7c39d4ae9f;p=distro-setup diff --git a/brc b/brc index 556c5ef..74cda5b 100644 --- a/brc +++ b/brc @@ -12,17 +12,22 @@ elif [[ -s ~/.iank/err ]]; then source ~/.iank/err fi -t2() { - echo t2 - popd - grep sdf sdfd - echo wtf -} -t1() { - echo t1 - trap - t2 a b c -} +# 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 +# grep sdf sdfd +# echo wtf +# } +# t1() { +# echo t1 +# t2 a b c +# } # * settings