Permalink
Browse files

formatting bugs causing problems with readline

  • Loading branch information...
1 parent 889e699 commit 497574744033eda8a86d92a58aab6d4807b7b45c C Anthony Risinger committed Sep 13, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 .../self/data/profile/etc/bash/interactive
@@ -146,9 +146,9 @@ read -a __self -r <<<"${ELLIPSIS_HOSTS}"
# \w pwd ~
_esc () {
- while ((${#*})); do
- printf '\[%s\]' "$(tput ${c} ${1})"; shift
- done
+ printf '\['
+ while ((${#*})); do tput ${c} ${1}; shift; done
+ printf '\]'
}
_ps1 () { (
@@ -186,9 +186,9 @@ _ps1 () { (
echo -e "\
${v}\
-${w}\D{%l:%M%P}$(x) ${u}${s}${w}
-\$(__git_ps1 '$(x;f 3)%s ' ${q})${w}\w${w}
-${m} $(x)"
+${w}${w}\D{%l:%M%P}$(x) ${u}${s}
+${w}\$(__git_ps1 '$(x;f 3)%s ' ${q})${w}\w
+${w}${m} $(x)"
) }

0 comments on commit 4975747

Please sign in to comment.