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:
a994152
)
Actually blank the line after emitting our title in prompt command, instead of trying...
author
Iain Patterson
<me@iain.cx>
Wed, 10 Dec 2008 18:00:07 +0000
(18:00 +0000)
committer
Iain Patterson
<me@iain.cx>
Wed, 10 Dec 2008 18:00:07 +0000
(18:00 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@165
6be0d1a5
-5cfe-0310-89b6-
964be062b18b
.profile.d/prompt.bashrc
patch
|
blob
|
history
diff --git
a/.profile.d/prompt.bashrc
b/.profile.d/prompt.bashrc
index
cf133c7
..
6ee910e
100644
(file)
--- a/
.profile.d/prompt.bashrc
+++ b/
.profile.d/prompt.bashrc
@@
-27,9
+27,8
@@
if ps -o comm= -p $PPID 2>/dev/null | grep '^vim*$' &>/dev/null; then
trap "echo -ne '\\033]0;$info\\007'" exit
info="$info$vimchild"
fi
-blank=$(echo "$info" | sed 's/./ /g')
if [ "${TERM##screen}" = "$TERM" ]; then
- export PROMPT_COMMAND="echo -ne '\033]0;$info\007\r
$blank \r
'"
+ export PROMPT_COMMAND="echo -ne '\033]0;$info\007\r
\033[K
'"
else
export PROMPT_COMMAND='echo -ne "\033k\033\\"'
fi