aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/prompt_adam3_setup
diff options
context:
space:
mode:
authorDennis Eriksen <dennis@eriksen.im>2017-06-06 12:33:41 +0200
committerDennis Eriksen <dennis@eriksen.im>2017-06-06 12:33:41 +0200
commit816f998b4a6c78b0a65e449dfaa496b2f6431b2a (patch)
treea6de7ce4ed4201f63db8b3b0d900edc2ea96edbb /prompt_adam3_setup
parentbugfixes (diff)
downloadadam3-816f998b4a6c78b0a65e449dfaa496b2f6431b2a.tar.gz
bugfix
you can't initiate an array with "local" in front
Diffstat (limited to 'prompt_adam3_setup')
-rw-r--r--prompt_adam3_setup3
1 files changed, 2 insertions, 1 deletions
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"