dotfiles

🎜 Clone'em, tweak'em, stick'em in your $HOME 🎝
git clone https://git.kevinlegouguec.net/dotfiles
Log | Files | Refs | README

commit 992ba4284e114606215f597a62f0129076459d5d
parent 05f1a76de6fc69a8b454909c0a0358ec14f8f407
Author: KΓ©vin Le Gouguec <kevin.legouguec@gmail.com>
Date:   Thu, 10 Nov 2016 20:36:17 +0100

Use compound assignment to fill in code array

Also remove "white" since it's the default color.

Diffstat:
M.bashprompt | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/.bashprompt b/.bashprompt @@ -71,13 +71,13 @@ __end-nonprinting () __fontify () { - local -A codes - codes[red]='31' - codes[green]='32' - codes[blue]='34' - codes[white]='37' - codes[bold]='1' - codes[dim]='2' + local -A codes=( + [red]=31 + [green]=32 + [blue]=34 + [bold]=1 + [dim]=2 + ) local text=$1 shift