diff --git a/themes/pro/pro.theme.bash b/themes/pro/pro.theme.bash new file mode 100644 index 00000000..6ac697bf --- /dev/null +++ b/themes/pro/pro.theme.bash @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +SCM_THEME_PROMPT_DIRTY=" ${red}✗" +SCM_THEME_PROMPT_CLEAN=" ${green}✓" +SCM_THEME_PROMPT_PREFIX=" ${blue}scm:( " +SCM_THEME_PROMPT_SUFFIX="${blue} )" + +GIT_THEME_PROMPT_DIRTY=" ${red}✗" +GIT_THEME_PROMPT_CLEAN=" ${green}✓" +GIT_THEME_PROMPT_PREFIX="${green}git:( " +GIT_THEME_PROMPT_SUFFIX="${green} )" + +function git_prompt_info { + git_prompt_vars + echo -e "$SCM_PREFIX$SCM_BRANCH$SCM_STATE$SCM_SUFFIX" +} + +function prompt() { + PS1="\h: \W $(scm_prompt_info)${reset_color} $ " +} + +PROMPT_COMMAND=prompt