mgalgs / fuzzy_bash_completion

Fuzzy tab completion for bash.
95 stars 9 forks source link

Error `bash: declare: -A: invalid option` #8

Closed xbao closed 9 years ago

xbao commented 9 years ago

When I try and source fuzzy_bash_completion:

source ../fuzzy_bash_completion/fuzzy_bash_completion 
bash: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]

I'm using Mac OSX Yosemite, bash 3.2.

mgalgs commented 9 years ago

Thanks for the report. Unfortunately you need bash >= 4. See this comment in the code (I should really print a warning)... You can install it with brew.

xbao commented 9 years ago

Oh cool, thanks! Maybe a line in the README might be an idea?

mgalgs commented 9 years ago

Done, thanks!