Skip to content

Commit

Permalink
Only reset bg at end of prompt ( as per arialdomartini#106 )
Browse files Browse the repository at this point in the history
  • Loading branch information
krayon committed Oct 7, 2017
1 parent 4556f33 commit d14c392
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ if [ -n "${BASH_VERSION}" ]; then
local background_cyan='\e[46m'
local background_white='\e[47m'

local reset='\e[0m' # Text Reset]'
local reset='\e[0m' # COMPLETE Reset
local resetbg='\e[49m' # Background Reset

local black_on_white="${black}${background_white}"
local yellow_on_white="${yellow}${background_white}"
Expand Down Expand Up @@ -159,7 +160,7 @@ if [ -n "${BASH_VERSION}" ]; then
fi
fi
prompt+=$(enrich_append ${is_on_a_tag} "${omg_is_on_a_tag_symbol} ${tag_at_current_commit}" "${black_on_red}")
prompt+="${reset}${red}${reset}\n"
prompt+="${resetbg}${red}${reset}\n"
prompt+="$(eval_prompt_callback_if_present)"
prompt+="${omg_second_line}"
else
Expand Down

0 comments on commit d14c392

Please sign in to comment.