git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b2d4a1
)
Screen fixes.
author
Iain Patterson
<me@iain.cx>
Wed, 22 Apr 2009 15:02:56 +0000
(16:02 +0100)
committer
Iain Patterson
<me@iain.cx>
Wed, 22 Apr 2009 15:02:56 +0000
(16:02 +0100)
Don't break old Solaris with PROMPT_COMMAND inside screen.
Don't accidentally send xoff.
.profile.d/prompt.bashrc
patch
|
blob
|
history
.screenrc
patch
|
blob
|
history
diff --git
a/.profile.d/prompt.bashrc
b/.profile.d/prompt.bashrc
index
501163b
..
a80c615
100644
(file)
--- a/
.profile.d/prompt.bashrc
+++ b/
.profile.d/prompt.bashrc
@@
-36,3
+36,8
@@
unset blank info vimchild SSH_FORWARDED
if [ "$TERMINAL_EMULATOR" = "dtterm" ]; then
unset PROMPT_COMMAND
fi
+
+# As does screen on an ancient Solaris host.
+if [ -n "$OLDSOLARIS" -a ! "${TERM##screen}" = "$TERM" ]; then
+ unset PROMPT_COMMAND
+fi
diff --git
a/.screenrc
b/.screenrc
index
3644fdc
..
4bd1a08
100644
(file)
--- a/
.screenrc
+++ b/
.screenrc
@@
-16,6
+16,8
@@
bind h prev
bind l next
# Close the current window.
bind q remove
+# Don't accidentally send xoff.
+bind s
# Set current window title.
bind t title
# Show or hide the hardstatus line.