From dd3ba69402ac9eab73107e2ebdbffcbe73233b2c Mon Sep 17 00:00:00 2001 From: James Hart Date: Fri, 18 Jul 2014 17:29:54 -0700 Subject: [PATCH 1/2] Add a wanelo bashit theme, with time! and emojis to indicate good status, bad status! --- themes/wanelo/wanelo.theme.bash | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 themes/wanelo/wanelo.theme.bash diff --git a/themes/wanelo/wanelo.theme.bash b/themes/wanelo/wanelo.theme.bash new file mode 100644 index 00000000..7457c7fb --- /dev/null +++ b/themes/wanelo/wanelo.theme.bash @@ -0,0 +1,24 @@ +#!/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}|" + +RVM_THEME_PROMPT_PREFIX="|" +RVM_THEME_PROMPT_SUFFIX="|" + +function prompt_command() { + if [ $? -eq 0 ]; then + status=❤️ + else + status=💔 + fi + PS1="\n${yellow}$(ruby_version_prompt) ${purple}\h ${reset_color}in ${green}\w\n${bold_cyan} ${blue}|\t|${green}$(scm_prompt_info) $status ${green}→${reset_color} " +} + +PROMPT_COMMAND=prompt_command; From 7c1ecce354da0c2fbef8c7d365c754d934aff585 Mon Sep 17 00:00:00 2001 From: James Hart Date: Fri, 8 Aug 2014 12:50:13 -0700 Subject: [PATCH 2/2] Move emoji to unused line above! - This was causing some issues when using the "up" arrow while replaying history --- themes/wanelo/wanelo.theme.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/wanelo/wanelo.theme.bash b/themes/wanelo/wanelo.theme.bash index 7457c7fb..e3cb7617 100644 --- a/themes/wanelo/wanelo.theme.bash +++ b/themes/wanelo/wanelo.theme.bash @@ -18,7 +18,7 @@ function prompt_command() { else status=💔 fi - PS1="\n${yellow}$(ruby_version_prompt) ${purple}\h ${reset_color}in ${green}\w\n${bold_cyan} ${blue}|\t|${green}$(scm_prompt_info) $status ${green}→${reset_color} " + PS1="\n${yellow}$(ruby_version_prompt) ${purple}\h ${reset_color}in ${green}\w $status \n${bold_cyan} ${blue}|\t|${green}$(scm_prompt_info) ${green}→${reset_color} " } PROMPT_COMMAND=prompt_command;