fixed a bug with colors in second line of prompt
authorrjorgenson <rjorgenson@gmail.com>
Fri, 8 Jul 2011 13:26:22 +0000 (06:26 -0700)
committerrjorgenson <rjorgenson@gmail.com>
Fri, 8 Jul 2011 13:26:22 +0000 (06:26 -0700)
themes/rjorgenson/rjorgenson.theme.bash

index c6dfe6e..bebc9b3 100644 (file)
@@ -68,11 +68,11 @@ modern_scm_prompt() {
 }
 
 my_prompt_char() {
-       if [[ $OSTYPE =~ "darwin" ]]; then
-               echo "${BRACKET_COLOR}➞  ${normal}"
-       else
-               echo "${BRACKET_COLOR}➞ ${normal}"
-       fi
+    if [[ $OSTYPE =~ "darwin" ]]; then
+        echo "${BRACKET_COLOR}➞  ${normal}"
+    else
+        echo "${BRACKET_COLOR}➞ ${normal}"
+    fi
 }
 
 prompt() {
@@ -88,7 +88,7 @@ prompt() {
 ${BRACKET_COLOR}└─$(my_prompt_char)${normal}"
         ;;
         *) PS1="${TITLEBAR}${BRACKET_COLOR}┌─[$my_ps_user${BRACKET_COLOR}][$my_ps_host${BRACKET_COLOR}]$(modern_scm_prompt)$(__my_rvm_ruby_version)${BRACKET_COLOR}[${STRING_COLOR}\w${BRACKET_COLOR}]$(is_vim_shell)
-└─$(todo_txt_count)$(my_prompt_char)"
+${BRACKET_COLOR}└─$(todo_txt_count)$(my_prompt_char)"
         ;;
     esac
 }