From: Ian Kelling <ian@iankelling.org>
Date: Fri, 25 Apr 2014 04:02:00 +0000 (-0700)
Subject: improve tx
X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=009623e3f113075ab130ba6fb1fb57c64af04b5e;p=distro-setup

improve tx
---

diff --git a/.bashrc b/.bashrc
index 3aea95b..83eddfb 100644
--- 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
 }