From 009623e3f113075ab130ba6fb1fb57c64af04b5e Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Thu, 24 Apr 2014 21:02:00 -0700 Subject: [PATCH] improve tx --- .bashrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } -- 2.30.2