donnemartin / dev-setup

macOS development environment setup: Easy-to-understand instructions with automated setup scripts for developer tools like Vim, Sublime Text, Bash, iTerm, Python data analysis, Spark, Hadoop MapReduce, AWS, Heroku, JavaScript web development, Android development, common data stores, and dev-based OS X defaults.
Other
6.13k stars 1.15k forks source link

Bash autocomplete does not work #56

Closed shawnzam closed 7 years ago

shawnzam commented 7 years ago

When I open terminal and try to tab to autocomplete


declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
-bash: complete: -D: invalid option
complete: usage: complete [-abcdefgjksuv] [-pr] [-o option] [-A action] [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F function] [-C command] [name ...]

me at hnt in ~
$ cd De-bash: printf: `words[0]': not a valid identifier
-bash: printf: `words[1]': not a valid identifier
-bash: compopt: command not found```
donnemartin commented 7 years ago

Hi @shawnzam, can you provide more details on how you ran into this issue? Was it from a fresh install of dev-setup? After some config changes?

What platform are you running on?

Are you using bash 4? https://github.com/spf13/cobra/issues/240

shawnzam commented 7 years ago

I am sorry, I forget to update this, but a reinstall of the library resolved the issue. Kindly close this issue.

donnemartin commented 7 years ago

Thanks for the reply!