From 5396bf69a017a6cca3e8526b93224d23e59447fb Mon Sep 17 00:00:00 2001 From: Dongri Jin Date: Fri, 27 Nov 2015 01:15:30 +0900 Subject: [PATCH 1/5] Initial commit --- themes/pro/pro.theme.bash | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 themes/pro/pro.theme.bash diff --git a/themes/pro/pro.theme.bash b/themes/pro/pro.theme.bash new file mode 100644 index 00000000..2294810e --- /dev/null +++ b/themes/pro/pro.theme.bash @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +light_blue="$(color reset blue)" +light_red="$(color reset red)" + + +SCM_THEME_PROMPT_DIRTY=" ${bold_red}✗" +SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓" +SCM_THEME_PROMPT_PREFIX=" ${light_blue}scm:(" +SCM_THEME_PROMPT_SUFFIX="${light_blue})" + +GIT_THEME_PROMPT_DIRTY=" ${bold_red}✗" +GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓" +GIT_THEME_PROMPT_PREFIX="${light_blue}git:(" +GIT_THEME_PROMPT_SUFFIX="${light_blue})" + +RVM_THEME_PROMPT_PREFIX="|" +RVM_THEME_PROMPT_SUFFIX="|" + +function git_prompt_info { + git_prompt_vars + echo -e "$SCM_PREFIX$SCM_BRANCH$SCM_STATE$SCM_SUFFIX" +} + +prompt() { + PS1="\h: ${reset_color}${green}\W${reset_color} $(scm_prompt_info)${reset_color}${reset_color} $ " +} + +PROMPT_COMMAND=prompt From 5f246cfcac69288e9f73c1af2bcde04b816d5549 Mon Sep 17 00:00:00 2001 From: Dongri Jin Date: Fri, 27 Nov 2015 01:16:20 +0900 Subject: [PATCH 2/5] Fix --- themes/pro/pro.theme.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/pro/pro.theme.bash b/themes/pro/pro.theme.bash index 2294810e..ac5daf77 100644 --- a/themes/pro/pro.theme.bash +++ b/themes/pro/pro.theme.bash @@ -5,12 +5,12 @@ light_red="$(color reset red)" SCM_THEME_PROMPT_DIRTY=" ${bold_red}✗" -SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓" +SCM_THEME_PROMPT_CLEAN=" ${green}✓" SCM_THEME_PROMPT_PREFIX=" ${light_blue}scm:(" SCM_THEME_PROMPT_SUFFIX="${light_blue})" GIT_THEME_PROMPT_DIRTY=" ${bold_red}✗" -GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓" +GIT_THEME_PROMPT_CLEAN=" ${green}✓" GIT_THEME_PROMPT_PREFIX="${light_blue}git:(" GIT_THEME_PROMPT_SUFFIX="${light_blue})" From 53d2452276396db6415a7cdc8dd335819b65a5fe Mon Sep 17 00:00:00 2001 From: Dongri Jin Date: Fri, 27 Nov 2015 01:19:14 +0900 Subject: [PATCH 3/5] Fix --- themes/pro/pro.theme.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/pro/pro.theme.bash b/themes/pro/pro.theme.bash index ac5daf77..a46c6474 100644 --- a/themes/pro/pro.theme.bash +++ b/themes/pro/pro.theme.bash @@ -11,8 +11,8 @@ SCM_THEME_PROMPT_SUFFIX="${light_blue})" GIT_THEME_PROMPT_DIRTY=" ${bold_red}✗" GIT_THEME_PROMPT_CLEAN=" ${green}✓" -GIT_THEME_PROMPT_PREFIX="${light_blue}git:(" -GIT_THEME_PROMPT_SUFFIX="${light_blue})" +GIT_THEME_PROMPT_PREFIX="${light_blue}git:( " +GIT_THEME_PROMPT_SUFFIX="${light_blue} )" RVM_THEME_PROMPT_PREFIX="|" RVM_THEME_PROMPT_SUFFIX="|" From 1eb7b4b4c28d844d5ddb28d3b50800943437be58 Mon Sep 17 00:00:00 2001 From: Dongri Jin Date: Fri, 27 Nov 2015 01:37:53 +0900 Subject: [PATCH 4/5] Fix --- themes/pro/pro.theme.bash | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/themes/pro/pro.theme.bash b/themes/pro/pro.theme.bash index a46c6474..74e74ad8 100644 --- a/themes/pro/pro.theme.bash +++ b/themes/pro/pro.theme.bash @@ -1,29 +1,22 @@ #!/usr/bin/env bash -light_blue="$(color reset blue)" -light_red="$(color reset red)" - - -SCM_THEME_PROMPT_DIRTY=" ${bold_red}✗" +SCM_THEME_PROMPT_DIRTY=" ${red}✗" SCM_THEME_PROMPT_CLEAN=" ${green}✓" -SCM_THEME_PROMPT_PREFIX=" ${light_blue}scm:(" -SCM_THEME_PROMPT_SUFFIX="${light_blue})" +SCM_THEME_PROMPT_PREFIX=" ${blue}scm:(" +SCM_THEME_PROMPT_SUFFIX="${blue})" -GIT_THEME_PROMPT_DIRTY=" ${bold_red}✗" +GIT_THEME_PROMPT_DIRTY=" ${red}✗" GIT_THEME_PROMPT_CLEAN=" ${green}✓" -GIT_THEME_PROMPT_PREFIX="${light_blue}git:( " -GIT_THEME_PROMPT_SUFFIX="${light_blue} )" - -RVM_THEME_PROMPT_PREFIX="|" -RVM_THEME_PROMPT_SUFFIX="|" +GIT_THEME_PROMPT_PREFIX="${echo_green}git:( " +GIT_THEME_PROMPT_SUFFIX="${echo_green} )" function git_prompt_info { git_prompt_vars echo -e "$SCM_PREFIX$SCM_BRANCH$SCM_STATE$SCM_SUFFIX" } -prompt() { - PS1="\h: ${reset_color}${green}\W${reset_color} $(scm_prompt_info)${reset_color}${reset_color} $ " +function prompt() { + PS1="\h: \W $(scm_prompt_info)${reset_color} $ " } PROMPT_COMMAND=prompt From 9c9c20da2aa2cc671f62fb1a66c65e26f7b8b42d Mon Sep 17 00:00:00 2001 From: Dongri Jin Date: Fri, 27 Nov 2015 01:41:19 +0900 Subject: [PATCH 5/5] Fix --- themes/pro/pro.theme.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/pro/pro.theme.bash b/themes/pro/pro.theme.bash index 74e74ad8..6ac697bf 100644 --- a/themes/pro/pro.theme.bash +++ b/themes/pro/pro.theme.bash @@ -2,13 +2,13 @@ SCM_THEME_PROMPT_DIRTY=" ${red}✗" SCM_THEME_PROMPT_CLEAN=" ${green}✓" -SCM_THEME_PROMPT_PREFIX=" ${blue}scm:(" -SCM_THEME_PROMPT_SUFFIX="${blue})" +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="${echo_green}git:( " -GIT_THEME_PROMPT_SUFFIX="${echo_green} )" +GIT_THEME_PROMPT_PREFIX="${green}git:( " +GIT_THEME_PROMPT_SUFFIX="${green} )" function git_prompt_info { git_prompt_vars