From 2025d2f98b274ba8baf67f857eb06b86f6b9852c Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 19 May 2014 09:33:20 -0500 Subject: [PATCH 1/5] neato theme based on oh-my-zsh "candy" and bash-it "candy" and "bobby" themes --- themes/neato/neato.theme.bash | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 themes/neato/neato.theme.bash diff --git a/themes/neato/neato.theme.bash b/themes/neato/neato.theme.bash new file mode 100755 index 00000000..f76abac5 --- /dev/null +++ b/themes/neato/neato.theme.bash @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +SCM_THEME_PROMPT_DIRTY=" ${red}✗" +SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓" +SCM_THEME_PROMPT_PREFIX=" [" +SCM_THEME_PROMPT_SUFFIX="${green}]" + +GIT_THEME_PROMPT_DIRTY=" ${red}✗" +GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓" +GIT_THEME_PROMPT_PREFIX=" ${green}[" +GIT_THEME_PROMPT_SUFFIX="${green}]" + +function prompt_command() { + # PS1="${green}\u@\h ${blue}\T ${reset_color}${white}\w${reset_color}$(scm_prompt_info)${blue} →${bold_blue} ${reset_color} "; + PS1="${bold_green}\u@\h ${bold_blue}[\T] ${reset_color}${white}[\w]${reset_color}$(scm_prompt_info)${blue}\n-> ${bold_blue}% ${reset_color}"; +} + +PROMPT_COMMAND=prompt_command; From ace0b159157646ec6920f2e9684bf59071bf926e Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 19 May 2014 10:17:31 -0500 Subject: [PATCH 2/5] prefer ascii to unicode in scm/git prompts --- themes/neato/neato.theme.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/neato/neato.theme.bash b/themes/neato/neato.theme.bash index f76abac5..d81e7a42 100755 --- a/themes/neato/neato.theme.bash +++ b/themes/neato/neato.theme.bash @@ -1,12 +1,12 @@ #!/usr/bin/env bash -SCM_THEME_PROMPT_DIRTY=" ${red}✗" -SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓" +SCM_THEME_PROMPT_DIRTY=" ${red}*" +SCM_THEME_PROMPT_CLEAN="" SCM_THEME_PROMPT_PREFIX=" [" SCM_THEME_PROMPT_SUFFIX="${green}]" -GIT_THEME_PROMPT_DIRTY=" ${red}✗" -GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓" +GIT_THEME_PROMPT_DIRTY=" ${red}*" +GIT_THEME_PROMPT_CLEAN="" GIT_THEME_PROMPT_PREFIX=" ${green}[" GIT_THEME_PROMPT_SUFFIX="${green}]" From 0c84bf9cb92f8aaa1140419d7195740a39177bef Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 19 May 2014 10:33:05 -0500 Subject: [PATCH 3/5] adjust prompt --- themes/neato/neato.theme.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/neato/neato.theme.bash b/themes/neato/neato.theme.bash index d81e7a42..9b408c14 100755 --- a/themes/neato/neato.theme.bash +++ b/themes/neato/neato.theme.bash @@ -12,7 +12,7 @@ GIT_THEME_PROMPT_SUFFIX="${green}]" function prompt_command() { # PS1="${green}\u@\h ${blue}\T ${reset_color}${white}\w${reset_color}$(scm_prompt_info)${blue} →${bold_blue} ${reset_color} "; - PS1="${bold_green}\u@\h ${bold_blue}[\T] ${reset_color}${white}[\w]${reset_color}$(scm_prompt_info)${blue}\n-> ${bold_blue}% ${reset_color}"; + PS1="${bold_green}\u@\h ${bold_blue}[\T] ${reset_color}${white}[\w]${reset_color}$(scm_prompt_info)${reset_color}\n${blue}-> ${bold_blue}% ${reset_color}"; } PROMPT_COMMAND=prompt_command; From 46b714a8b89f4edbd352c11607bf74a6b1bb824d Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 19 May 2014 10:36:09 -0500 Subject: [PATCH 4/5] remove commented code (original prompt) --- themes/neato/neato.theme.bash | 1 - 1 file changed, 1 deletion(-) diff --git a/themes/neato/neato.theme.bash b/themes/neato/neato.theme.bash index 9b408c14..cfb09390 100755 --- a/themes/neato/neato.theme.bash +++ b/themes/neato/neato.theme.bash @@ -11,7 +11,6 @@ GIT_THEME_PROMPT_PREFIX=" ${green}[" GIT_THEME_PROMPT_SUFFIX="${green}]" function prompt_command() { - # PS1="${green}\u@\h ${blue}\T ${reset_color}${white}\w${reset_color}$(scm_prompt_info)${blue} →${bold_blue} ${reset_color} "; PS1="${bold_green}\u@\h ${bold_blue}[\T] ${reset_color}${white}[\w]${reset_color}$(scm_prompt_info)${reset_color}\n${blue}-> ${bold_blue}% ${reset_color}"; } From f55344334c163a58c1265c717650d0a0bd65716d Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 19 May 2014 11:23:16 -0500 Subject: [PATCH 5/5] path should be white but not bold --- themes/neato/neato.theme.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/neato/neato.theme.bash b/themes/neato/neato.theme.bash index cfb09390..e72358c7 100755 --- a/themes/neato/neato.theme.bash +++ b/themes/neato/neato.theme.bash @@ -11,7 +11,7 @@ GIT_THEME_PROMPT_PREFIX=" ${green}[" GIT_THEME_PROMPT_SUFFIX="${green}]" function prompt_command() { - PS1="${bold_green}\u@\h ${bold_blue}[\T] ${reset_color}${white}[\w]${reset_color}$(scm_prompt_info)${reset_color}\n${blue}-> ${bold_blue}% ${reset_color}"; + PS1="${bold_green}\u@\h ${bold_blue}[\T] ${reset_color}$(color reset white)[\w]${reset_color}$(scm_prompt_info)${reset_color}\n${blue}-> ${bold_blue}% ${reset_color}"; } PROMPT_COMMAND=prompt_command;