summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2016-11-10 20:36:17 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2016-11-10 21:31:51 +0100
commit992ba4284e114606215f597a62f0129076459d5d (patch)
tree71b7370b02d3c7152c0baf28efa5940552c34e33
parent05f1a76de6fc69a8b454909c0a0358ec14f8f407 (diff)
downloaddotfiles-992ba4284e114606215f597a62f0129076459d5d.tar.xz
Use compound assignment to fill in code array
Also remove "white" since it's the default color.
-rw-r--r--.bashprompt14
1 files changed, 7 insertions, 7 deletions
diff --git a/.bashprompt b/.bashprompt
index 08bedae..a892c73 100644
--- 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