improve tx
[distro-setup] / .bashrc
diff --git a/.bashrc b/.bashrc
index 3aea95beaa7f90de1f56baed5972c37482857c55..83eddfb81724bebc3b98f0e155d2c12ee2bda365 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -640,10 +640,13 @@ ts() { # start editing a new file
 
 }
 
-tx() { # toggle set -x
+tx() { # toggle set -x, and the prompt so it doesn't spam
     if [[ $- == *x* ]]; then
        set +x
+        PROMPT_COMMAND=prompt_command
     else
+        unset PROMPT_COMMAND
+        PS1="\w \$ "
        set -x
     fi
 }