{"repo":"szermatt/emacs-bash-completion","free":true,"listed":false,"github":"https://github.com/szermatt/emacs-bash-completion","clone":"git clone https://github.com/szermatt/emacs-bash-completion.git","description":"Add programmable bash completion to Emacs shell-mode","language":"Emacs Lisp","stars":296,"topics":["emacs","emacs-lisp","bash-completion","bash"],"license":"GPL-2.0","category":"cli-tools","readme_excerpt":"bash-completion for Emacs bash-completion.el defines dynamic completion hooks for shell-mode and shell-command prompts that is based on bash completion. Bash completion for Emacs: - is aware of bash builtins, aliases and functions - does file expansion inside of colon-separated variables and after redirections ( or [!NOTE] While I'm still maintaining bash-completion.el, I've switched to [MisTTY] for day-to-day operation, so that package is more likely to receive updates. -- szermatt [MisTTY]: http://github.com/szermatt/mistty INSTALLATION Copy bash-completion.el into a directory that's on Emacs load-path. You can do that manually, or by installing it from NonGNU ELPA or MELPA. Shell completion To enable bash completion in shell buffers as well as in command prompts, such as the prompt started by compile , add the hook bash-completion-dynamic-complete to shell-dynamic-complete-functions . For example: or simpler, but loads bash-completion.el right away: After that reload your .emacs ( M-x eval-buffer ) or restart. When called from a bash shell buffer, bash-completion-dynamic-complete communicates with the current shell to reproduce, as closely as possible the normal bash auto-completion, available on full terminals. When called from non-shell buffers, such as the prompt of M-x compile, bash-completion-dynamic-complete creates a separate bash process just for doing completion. Such processes have the environment variable EMACS BASH COMPLETE set to t , to help distinguish them f","default_branch":null,"files":null,"tree":[],"storefront":"/r/szermatt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/szermatt/emacs-bash-completion/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}