petobens / trueline

Fast and extensible bash powerline prompt with true color and fancy icon support
MIT License
385 stars 36 forks source link

OSX / Iterm2 Issue #8

Closed ghost closed 5 years ago

ghost commented 5 years ago

Added the following to .bash_profile

# Trueline enable
source ~/trueline/trueline.sh

and get the following:

Last login: Tue Jun 25 10:03:52 on ttys005
-bash: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
-bash: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
petobens commented 5 years ago

Associative arrays were added to bash in version 4.0 (in 2010). What version are you using? You might need to upgrade it.

petobens commented 5 years ago

As I said in my previous comment I'm pretty sure this is related to the bash version. I'm closing now. If you cannot fix this by updating bash please let me know and I'll reopen.

Nicholas-Autio-Mitchell commented 1 year ago

@petobens I am seeing the above error on Mac OSX using bash version 5.2.15.

Any ideas what the issue could be?