minor fixes
[distro-setup] / brc
diff --git a/brc b/brc
index 556c5ef04e743bb2208cc54dd7ae3d7cd1569cbe..74cda5b1be142b813c25bae225d682bb271bcc99 100644 (file)
--- 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