Skip to content
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

Merged
merged 3 commits into from Dec 17, 2013

Conversation

boegel
Copy link
Member

@boegel boegel commented Dec 17, 2013

@@ -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"],
Copy link
Contributor

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

Copy link
Member Author

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

@boegel
Copy link
Member Author

boegel commented Dec 17, 2013

@stdweird: OK to go in?

@stdweird
Copy link
Contributor

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.

@boegel
Copy link
Member Author

boegel commented Dec 17, 2013

@stdweird: done, see hpcugent/vsc-base#99

@boegel
Copy link
Member Author

boegel commented Dec 17, 2013

merging this, so we'll have decent tab completion support in EB v1.10!

boegel added a commit that referenced this pull request Dec 17, 2013
add minimal set of bash functions required to make tab completion work for 'older' versions of bash
@boegel boegel merged commit 0bb513d into easybuilders:develop Dec 17, 2013
@boegel boegel deleted the complete_optcomplete branch December 17, 2013 16:42
@stdweird
Copy link
Contributor

@boegel thx., but let's not call this decent. all it does for now is option completion, there is no value completion yet

@boegel
Copy link
Member Author

boegel commented Dec 17, 2013

that's decent, not ideal ;)

@boegel boegel mentioned this pull request Dec 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants