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

bash tab completion for module use dir<TAB> doesn't work if _filedir isn't on system #86

Closed
rtmclay opened this issue Dec 9, 2015 · 4 comments
Assignees

Comments

@rtmclay
Copy link
Member

rtmclay commented Dec 9, 2015

If the bash completion function _filedir is not there then you can't do tab completion for module use under bash.

@rtmclay
Copy link
Member Author

rtmclay commented Aug 31, 2016

Lmod version 6.5.5 fixes this problem. At least in my tests.

@boegel
Copy link
Contributor

boegel commented Sep 1, 2016

@rtmclay I can confirm this is fixed in Lmod 6.5.5, where tab completion for paths works (e.g. module use /tm<tab> completes to module use /tmp/

What doesn't work is tab completion for environment variables though, which does work in other contexts... For example when $PREFIX is defined, module use $PRE<tab> doesn't complete to module use $PREFIX (it doesn't throw a nasty error either though, so that's definitely a step up).

I have no idea if this could be fixed as well, or how hard it would be. Maybe @pneerincx has an idea?

@pneerincx
Copy link
Contributor

pneerincx commented Sep 3, 2016

@boegel module use $PRE<tab> will autocomplete with #159 to module use $PREFIX, but only if that environment variable contains a valid/existing path to a directory. While I was at it I also added support for expanding ~ to home dirs.

@boegel
Copy link
Contributor

boegel commented Sep 4, 2016

@rtmclay this can be closed now? Thanks again @pneerincx!

@rtmclay rtmclay closed this as completed Sep 4, 2016
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

No branches or pull requests

3 participants