1

I'm running cygwin bash in shell mode in emacs, but I don't get any completions, is there a way to set it up?

1 Answer 1

0

There is a bash-completion package you can install to have this functionality.

The reason it doesn't work out of the box is that shell-mode doesn't send your input to the shell until you press RET, which calls the command comint-send-input. Unlike a terminal, when you press TAB, you are just calling Emacs's completion-at-point command, not interacting directly with shell.

If you don't want to install a package for this, you can try using term-mode or ansi-term-mode, which provide terminal interface features that allow bash completion to work. (But I am not sure how well these work with Cygwin.)

1
  • Thanks for the answer, I do use bash-completion package, my fault I didn't mention that in the question, it works fine on linux, but not on windows & cygwin, and I would like to use shell-mode, not term-mode. Commented Oct 20 at 9:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.