From 094c8464643e78f79d49e82d4b45cb1b9595798a Mon Sep 17 00:00:00 2001 From: madcarrot <8383zhe@gmail.com> Date: Sun, 13 May 2018 16:35:34 -0400 Subject: [PATCH 1/6] Update powerline-multiline.base.bash --- themes/powerline-multiline/powerline-multiline.base.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/themes/powerline-multiline/powerline-multiline.base.bash b/themes/powerline-multiline/powerline-multiline.base.bash index b78f5b74..b92e5c8c 100644 --- a/themes/powerline-multiline/powerline-multiline.base.bash +++ b/themes/powerline-multiline/powerline-multiline.base.bash @@ -51,6 +51,8 @@ function __powerline_prompt_command { local info="$(__powerline_${segment}_prompt)" [[ -n "${info}" ]] && __powerline_right_segment "${info}" done + RIGHT_PAD=$(printf "%.s " $(seq 1 $RIGHT_PROMPT_LENGTH)) + LEFT_PROMPT+="${RIGHT_PAD}${move_cursor_rightmost}" LEFT_PROMPT+="\033[${RIGHT_PROMPT_LENGTH}D" fi From ecdf6af08d1a586991e4985dc39c1364dcbe8194 Mon Sep 17 00:00:00 2001 From: madcarrot <8383zhe@gmail.com> Date: Tue, 15 May 2018 16:22:41 -0400 Subject: [PATCH 2/6] Update powerline-multiline.base.bash --- themes/powerline-multiline/powerline-multiline.base.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/powerline-multiline/powerline-multiline.base.bash b/themes/powerline-multiline/powerline-multiline.base.bash index b92e5c8c..ac442f73 100644 --- a/themes/powerline-multiline/powerline-multiline.base.bash +++ b/themes/powerline-multiline/powerline-multiline.base.bash @@ -46,7 +46,7 @@ function __powerline_prompt_command { ## right prompt ## if [[ -n "${POWERLINE_RIGHT_PROMPT}" ]]; then - LEFT_PROMPT+="${move_cursor_rightmost}" + # LEFT_PROMPT+="${move_cursor_rightmost}" for segment in $POWERLINE_RIGHT_PROMPT; do local info="$(__powerline_${segment}_prompt)" [[ -n "${info}" ]] && __powerline_right_segment "${info}" From 9571c11ad0fb7afa8b5823b4cc5a295b9c3c8e64 Mon Sep 17 00:00:00 2001 From: "Brett A. Rogers" <14743+brogers@users.noreply.github.com> Date: Wed, 16 May 2018 14:58:59 -0400 Subject: [PATCH 3/6] Return to original directory after reload --- lib/helpers.bash | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/helpers.bash b/lib/helpers.bash index e80c8459..e8fc19ba 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -270,6 +270,8 @@ _bash-it-reload() { source ~/.bashrc ;; esac + + cd - &> /dev/null || return } _bash-it-describe () From bca7051a62dfe788230d995f41a30b936509f8d0 Mon Sep 17 00:00:00 2001 From: Josh Marshall Date: Fri, 18 May 2018 11:52:35 +1000 Subject: [PATCH 4/6] Fix bold text issue The default text style was not being set back to normal so terminal output was rendering bold, e.g. for an ls command --- themes/candy/candy.theme.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/candy/candy.theme.bash b/themes/candy/candy.theme.bash index f3f0abfc..60bde3cd 100644 --- a/themes/candy/candy.theme.bash +++ b/themes/candy/candy.theme.bash @@ -1,7 +1,7 @@ #!/usr/bin/env bash function prompt_command() { - PS1="${green}\u@\h $(clock_prompt) ${reset_color}${white}\w${reset_color}$(scm_prompt_info)${blue} →${bold_blue} ${reset_color} "; + PS1="${green}\u@\h $(clock_prompt) ${reset_color}${white}\w${reset_color}$(scm_prompt_info)${blue} →${bold_blue} ${reset_color} ${normal}"; } THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"$blue"} From 9260e16278bd556810180d79c1f23c65cafd292e Mon Sep 17 00:00:00 2001 From: penguin2048 Date: Mon, 21 May 2018 22:56:14 +0530 Subject: [PATCH 5/6] Add elixr theme --- themes/elixr/elixr.theme.bash | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 themes/elixr/elixr.theme.bash diff --git a/themes/elixr/elixr.theme.bash b/themes/elixr/elixr.theme.bash new file mode 100644 index 00000000..79ef313f --- /dev/null +++ b/themes/elixr/elixr.theme.bash @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +SCM_THEME_PROMPT_DIRTY=" ${red}✗" +SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓" +SCM_THEME_PROMPT_PREFIX=" ${green}| " +SCM_THEME_PROMPT_SUFFIX="${green} |" +SCM_NONE_CHAR='◐ ' +SCM_GIT_SHOW_MINIMAL_INFO=true +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=" d|" + +BOLD="\[\e[1m\]" + +function prompt_command() { + PS1="\n${bold_cyan}$(scm_prompt_char_info) ${bold_cyan}\w :${reset_color}${normal}${bold} " +} + +safe_append_prompt_command prompt_command From badc3beddfe3da239f9ed07a8245c817598373a7 Mon Sep 17 00:00:00 2001 From: penguin2048 Date: Mon, 21 May 2018 23:09:09 +0530 Subject: [PATCH 6/6] Add bold text in elixr theme --- themes/elixr/elixr.theme.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/elixr/elixr.theme.bash b/themes/elixr/elixr.theme.bash index 79ef313f..0e37f94c 100644 --- a/themes/elixr/elixr.theme.bash +++ b/themes/elixr/elixr.theme.bash @@ -17,7 +17,7 @@ RVM_THEME_PROMPT_SUFFIX=" d|" BOLD="\[\e[1m\]" function prompt_command() { - PS1="\n${bold_cyan}$(scm_prompt_char_info) ${bold_cyan}\w :${reset_color}${normal}${bold} " + PS1="\n${bold_cyan}$(scm_prompt_char_info) ${bold_cyan}\w :${reset_color}${normal}${BOLD} " } safe_append_prompt_command prompt_command