-
Notifications
You must be signed in to change notification settings - Fork 174
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
Move bash completion file to rignt place and reformat to use tabs #413
base: master
Are you sure you want to change the base?
Conversation
kloczek
commented
Aug 5, 2020
- Move bash completion file to $(datadir)/bash-completion/completions
- Reformat to use only tabs (to make taht file a bit smaller)
- sort OPTIONS entries
- Rename bash completion file to just hwloc
Hello
|
I'm not using zsh. If that syntax is acceptable and it imports bash files it should be no problem.
That is understandable for source code however this file is kind of "executable" form and it should be as short as possible. Using tabs allows reduce size of that file. When file is installed no one should be looking on that file as long as it will have no any bugs. Installed form should be as small as possible.
Sorting alphabetically is logical.
As you see you been using |
By the way, we'll need a Signed-off-by line in each commit (that's why the PR is currently marked as not successful). See the last section of https://github.com/open-mpi/ompi/wiki/Administrative-rules Thanks! |
The old /etc/bash_completions.d/ is still available by installing with something like: make install bashcompletionsdir='/etc/bash_completions.d Thanks to Tomasz Kłoczko for the suggestion (see open-mpi#413 for details) Signed-off-by: Brice Goglin <[email protected]>
No need to have "-completion" in the name. Remove the .bash suffix so that the install path is similar to others (renaming isn't trivial in automake). Move to a bash subdirectory in case we ever ship a zsh completion file. Thanks to Tomasz Kłoczko for the suggestion (see open-mpi#413) Signed-off-by: Brice Goglin <[email protected]>
No need to have "-completion" in the name. Remove the .bash suffix so that the install path is similar to others (renaming isn't trivial in automake). Move to a bash subdirectory in case we ever ship a zsh completion file. Thanks to Tomasz Kłoczko for the suggestion (see #413) Signed-off-by: Brice Goglin <[email protected]>