-
Notifications
You must be signed in to change notification settings - Fork 33
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
Understanding how to setup bash-completion #54
Comments
Completion in .sh files with bash-completion isn't supported by (bash-completion-setup). With (bash-completion-setup) you get completion in bash shells, started with M-x shell. Getting it to work is likely possible - with some limitations - but definitely nontrivial. |
Do you know some plugins that do what I want? If there are no such ones can you give me some advice what to pay attention for while creating them? |
I'm not aware of any plugins that does what you want. To do it yourself, you'd need to write an adapter: add a new completion function into The tricky part is, I think, figuring out what With that setup, bash completion will not be able to complete functions or variables that are not generally available (defined in the .bashrc, for example) and will not be aware of the script's current directory; getting that to work would need more work. If all you want is completion of the command-line options, you might not care about that. |
I have the following
~/.emacs
init file config now:My goal to have Bash completion automatically enabled in all
.sh
files. But now when I try presstab
in.sh
files nothing is suggested. May be I am doing smth wrong. 🤔If I find the decision I will place it in the comments.
The text was updated successfully, but these errors were encountered: