Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
pocco81 committed Nov 21, 2021
2 parents 0240189 + 87f4f69 commit 32a1013
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions miniprompt
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ function reset_prompt() {
PS1_previous_exit="$?"
PS1_prefix="${prefix}" # window title
for clr in "${!clrs[@]}"; do
ps_content=${ps_content/"</${clr}>"/"${clrs[$clr]}"}
ps_suffix=${ps_suffix/"</${clr}>"/"${clrs[$clr]}"}
ps_content=${ps_content//"</${clr}>"/"${clrs[$clr]}"}
ps_suffix=${ps_suffix//"</${clr}>"/"${clrs[$clr]}"}
done
PS1_content="${ps_content}"
PS1_suffix="${ps_suffix}${clrs[$normal_color]}"
Expand Down Expand Up @@ -270,8 +270,8 @@ function assert_extension() {
if ! [ -z "${unit}" ]; then
val="${name}_struct"
parsed_struct="${!val}"
for clr in "${!clrs[@]}"; do parsed_struct=${parsed_struct/"</${clr}>"/"${clrs[$clr]}"}; done
final_extensions[${name}]="${parsed_struct/"</unit>"/"${unit}"}"
for clr in "${!clrs[@]}"; do parsed_struct=${parsed_struct//"</${clr}>"/"${clrs[$clr]}"}; done
final_extensions[${name}]="${parsed_struct//"</unit>"/"${unit}"}"
else
final_extensions[${name}]=""
fi
Expand Down

0 comments on commit 32a1013

Please sign in to comment.