_get_comp_words_by_ref missing
Hi docker-machine authors,
I was trying out the bash completion scripts. After adding
docker-machine.bash
docker-machine-prompt.bash
to ~/.bashrc and "source" them, this error was thrown:
$ docker-machine -bash: _get_comp_words_by_ref: command not found
-bash: ((: i < : syntax error: operand expected (error token is " ")
-bash: _get_comp_words_by_ref: command not found
-bash: ((: i < : syntax error: operand expected (error token is " ")
I searched for _get_comp_words_by_ref in this repository, but only a usage was found. It might have been removed, I guess. Do you guys still have that function by any chance?
_get_comp_words_by_ref is a function provided by the bash-completion package.
Possible causes for your error message would be
- bash-completion is not installed
- bash-completion is not invoked from your login scripts
- you source the completion files before bash-completion is initialized
Thanks @albers . I'm going to close the issue as I think it's related to installation issues
source /etc/profile if you aren't already (i.e.: when using bash with alpine).
source /etc/profileif you aren't already (i.e.: when using bash with alpine).
This worked for bash with centos too. thanks!