git://git.iain.cx/iain
/
profile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Numeric terminfo entries for OS X.
[profile.git]
/
.profile.d
/
prompt.bashrc
diff --git
a/.profile.d/prompt.bashrc
b/.profile.d/prompt.bashrc
index
f874d59
..
cf133c7
100644
(file)
--- a/
.profile.d/prompt.bashrc
+++ b/
.profile.d/prompt.bashrc
@@
-28,5
+28,9
@@
if ps -o comm= -p $PPID 2>/dev/null | grep '^vim*$' &>/dev/null; then
info="$info$vimchild"
fi
blank=$(echo "$info" | sed 's/./ /g')
info="$info$vimchild"
fi
blank=$(echo "$info" | sed 's/./ /g')
-export PROMPT_COMMAND="echo -ne '\033]0;$info\007\r$blank \r'"
+if [ "${TERM##screen}" = "$TERM" ]; then
+ export PROMPT_COMMAND="echo -ne '\033]0;$info\007\r$blank \r'"
+else
+ export PROMPT_COMMAND='echo -ne "\033k\033\\"'
+fi
unset blank info vimchild SSH_FORWARDED
unset blank info vimchild SSH_FORWARDED