New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add minimal set of bash functions required to make tab completion work for 'older' versions of bash #797
Conversation
@@ -92,7 +92,7 @@ def find_rel_test(): | |||
packages = easybuild_packages, | |||
package_dir = {'test.framework': "test/framework"}, | |||
package_data = {"test.framework": find_rel_test()}, | |||
scripts = ["eb", "optcomplete.bash"], | |||
scripts = ["eb", "optcomplete.bash", "minimal_bash_completion.bash"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add them with data_files? should be done for vsc-base too i guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't have (full) control for the stuff in data_files
where it is installed too, e.g. with:
data_files = [
('easybuild', ["easybuild/easybuild_config.py"]),
('share', ["optcomplete.bash", "minimal_bash_completion.bash"]),
],
you get:
$ python setup.py install --prefix /tmp/ebv110devtest
$ ls /tmp/ebv110devtest/lib/python2.7/site-packages/easybuild_framework-1.10.0dev-py2.7.egg/share/
minimal_bash_completion.bash optcomplete.bash
…lled alongside 'eb' command
@stdweird: OK to go in? |
yes, please open an issue in vsc-base to investigate better location and mechanism for the .bash files; for now it will do just fine. |
@stdweird: done, see hpcugent/vsc-base#99 |
merging this, so we'll have decent tab completion support in EB v1.10! |
add minimal set of bash functions required to make tab completion work for 'older' versions of bash
@boegel thx., but let's not call this decent. all it does for now is option completion, there is no value completion yet |
that's decent, not ideal ;) |
documentation to set this up available at https://github.com/hpcugent/easybuild/wiki/Setting-up-tab-completion-for-bash