diff --git a/themes/brunton/brunton.theme.bash b/themes/brunton/brunton.theme.bash new file mode 100644 index 00000000..7c84faec --- /dev/null +++ b/themes/brunton/brunton.theme.bash @@ -0,0 +1,41 @@ +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="${bold_green}±${normal}" +SCM_SVN_CHAR="${bold_cyan}⑆${normal}" +SCM_HG_CHAR="${bold_red}☿${normal}" + +is_vim_shell() { + if [ ! -z "$VIMRUNTIME" ] + then + echo "[${cyan}vim shell${normal}]" + fi +} + +scm_prompt() { + CHAR=$(scm_char) + if [ $CHAR = $SCM_NONE_CHAR ] + then + return + else + echo " $(scm_char) (${white}$(scm_prompt_info)${normal})" + fi +} + +safe_battery_charge() { + if [ -e "${BASH_IT}/plugins/enabled/battery.plugin.bash" ]; + then + battery_charge + fi +} + +prompt() { + PS1="${white}${background_blue} \u${normal}${background_blue}@${red}${background_blue}\h ${blue}${background_white} \t ${reset_color}${normal} $(safe_battery_charge) +${bold_black}${background_white} \w ${normal}$(scm_prompt)$(is_vim_shell) +${white}>${normal} " + +} + +PROMPT_COMMAND=prompt