Skip to content

Commit

Permalink
fixed some syntax problems
Browse files Browse the repository at this point in the history
updated bash_it base install and theme stopped working
needed some syntax changes to show colors properly
cleaned up color disambiguation a bit
  • Loading branch information
rjorgenson committed Nov 12, 2011
1 parent 25ff906 commit e305e48
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions themes/rjorgenson/rjorgenson.theme.bash
Expand Up @@ -2,17 +2,17 @@

# set colors for use throughout the prompt
# i like things consistent
BRACKET_COLOR=$blue
STRING_COLOR=$green
BRACKET_COLOR=${blue}
STRING_COLOR=${green}

SCM_THEME_PROMPT_PREFIX=""
SCM_THEME_PROMPT_SUFFIX=""

SCM_THEME_PROMPT_DIRTY=' ${bold_red}✗${normal}'
SCM_THEME_PROMPT_CLEAN=' ${bold_green}✓${normal}'
SCM_GIT_CHAR='${STRING_COLOR}±${normal}'
SCM_SVN_CHAR='${bold_cyan}⑆${normal}'
SCM_HG_CHAR='${bold_red}☿${normal}'
SCM_THEME_PROMPT_DIRTY=" ${bold_red}${normal}"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}${normal}"
SCM_GIT_CHAR="${STRING_COLOR}±${normal}"
SCM_SVN_CHAR="${bold_cyan}${normal}"
SCM_HG_CHAR="${bold_red}${normal}"

#Mysql Prompt
export MYSQL_PS1="(\u@\h) [\d]> "
Expand All @@ -39,7 +39,7 @@ __my_rvm_ruby_version() {
is_vim_shell() {
if [ ! -z "$VIMRUNTIME" ]
then
echo "$BRACKET_COLOR[${STRING_COLOR}vim shell$BRACKET_COLOR]$normal"
echo "${BRACKET_COLOR}[${STRING_COLOR}vim shell${BRACKET_COLOR}]${normal}"
fi
}

Expand All @@ -52,7 +52,7 @@ todo_txt_count() {
if `hash todo.sh 2>&-`; then # is todo.sh installed
count=`todo.sh ls | egrep "TODO: [0-9]+ of ([0-9]+) tasks shown" | awk '{ print $4 }'`
if is_integer $count; then # did we get a sane answer back
echo "$BRACKET_COLOR[${STRING_COLOR}T:$count$BRACKET_COLOR]$normal"
echo "${BRACKET_COLOR}[${STRING_COLOR}T:$count${BRACKET_COLOR}]$normal"
fi
fi
}
Expand All @@ -63,7 +63,7 @@ modern_scm_prompt() {
then
return
else
echo "$BRACKET_COLOR[$(scm_char)$BRACKET_COLOR][$STRING_COLOR$(scm_prompt_info)$BRACKET_COLOR]$normal"
echo "${BRACKET_COLOR}[${CHAR}${BRACKET_COLOR}][${STRING_COLOR}$(scm_prompt_info)${BRACKET_COLOR}]$normal"
fi
}

Expand Down

0 comments on commit e305e48

Please sign in to comment.