dotfiles: Bash-Completion Errors
I’ve installed this dotfiles-repo on a newly installed Yosemite Machine. I also ran brew.sh after installing homebrew. Everything works as expected, but not in the terminal.
After reboot each terminal starts with lots of errors:
-bash: declare: -A: invalid option
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 ...]
Also, when i want to use bash completion, something like this happens:
mv Dropb-bash: ${prev,,}: bad substitution
I typed “mv Dropb” and pressed the Tab-key then. The other characters “-bash: $(prev…” occur then and restricts me to use the bash completion as it was possible before installing these dotfiles.
which part of the dotfiles should i change (or delete) to fix these issues?
About this issue
- Original URL
- State: open
- Created 9 years ago
- Comments: 32 (13 by maintainers)
Commits related to this issue
- fixed bash completion errors From issue #544 in source branch [https://github.com/mathiasbynens/dotfiles/issues/544] — committed to mhausmann/dotfiles by mhausmann 7 years ago
- Fixing an issue where bash completion does not work https://github.com/mathiasbynens/dotfiles/issues/544 — committed to alexjpaz/workstation by alexjpaz 5 years ago
Thanks a lot!
By the way, these both lines will fix these issues, maybe they could be part of the brew.sh script?
@itinance Here’s a slightly more robust version: