From 816f998b4a6c78b0a65e449dfaa496b2f6431b2a Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Tue, 6 Jun 2017 12:33:41 +0200 Subject: bugfix you can't initiate an array with "local" in front --- prompt_adam3_setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'prompt_adam3_setup') diff --git a/prompt_adam3_setup b/prompt_adam3_setup index 33c6d81..63d218a 100644 --- a/prompt_adam3_setup +++ b/prompt_adam3_setup @@ -33,7 +33,8 @@ prompt_adam3_setup () { #prompt_adam3_hostnamebold=$(( $RANDOM % 2 )) # Possible prompt colors - local colors=(black,red black,green black,yellow black,blue black,magenta black,cyan red,white red,yellow red,cyan green,black green,blue yellow,black yellow,blue blue,white blue,red blue,yellow magenta,white magenta,yellow cyan,white cyan,blue white,black white,red white,blue white,magenta) + local colors + colors=(black,red black,green black,yellow black,blue black,magenta black,cyan red,white red,yellow red,cyan green,black green,blue yellow,black yellow,blue blue,white blue,red blue,yellow magenta,white magenta,yellow cyan,white cyan,blue white,black white,red white,blue white,magenta) # This is where we set up the actual prompt. local hostname_prompt="%K{${${colors[${hostname_color}]}%,*}}%F{${${colors[${hostname_color}]}##*,}}%m%f%k" -- cgit v1.2.3