iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fa752a
)
improve tx
author
Ian Kelling
<ian@iankelling.org>
Fri, 25 Apr 2014 04:02:00 +0000
(21:02 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Thu, 4 May 2017 23:40:14 +0000
(16:40 -0700)
.bashrc
patch
|
blob
|
history
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
}