scop/bash-completion
View on GitHub ↗ ★ 3,544 Shell
Programmable completion functions for bash
11 mentions on Hacker News by 10 people: 1 story, 10 comments · first 2018-04-30 · latest 2026-03-01
20082026
-
▲ 1
Bash-completion: Programmable bash completionstory by flykespice · 2026-03-01 · 0 comments
-
…project evidently exists, and I think it's even fairly well supported in e.g. Debian-based systems: https://github.com/scop/bash-completion .
comment by QuercusMax · 2025-12-02 · in John Giannandrea to retire from Apple -
I was referring to the bash-completion project, the default on Debian/Ubuntu - https://github.com/scop/bash-completion/ But yes, ble.sh also has a shell parser in shell, although it uses a state machine style that's more principled than…
comment by chubot · 2025-06-29 · in Parsing JSON in Forty Lines of Awk -
…(other than the fact that tilde expanding variable-style arguments is disabled in POSIX mode). [1] https://github.com/scop/bash-completion/blob/8a8880db78e9b04...
comment by jasomill · 2024-12-13 · in "Rules" that terminal programs follow -
…--help output (most Coreutils, bash, awk, grep, sed...) by parsing it in the completion function: https://github.com/scop/bash-completion/blob/29508ce70914f78...
comment by bewuethr · 2020-12-05 · in CLI Guidelines – A guide to help you write better command-line programs -
…is available in many (but not all :-/) Linux distros and via Homebrew on MacOS and [pre-dates]( https://github.com/scop/bash-completion/tree/09b07d57a7031d9... ) [oh-my-zsh]( https://github.com/ohmyzsh/ohmyzsh/tree/5da20b9dddb1f7a91106...…
comment by ti_ranger · 2020-08-24 · in Kali Linux 2020.3 -
…for you. It works with all projects, as it does not rely on the rules being specially marked. ( https://github.com/scop/bash-completion/blob/master/completi... ) Before I knew about it, I had written a similar thing: # Autocomplete make…
comment by grive · 2020-07-01 · in How to list all the targets on a Makefile -
bash-completion provides sufficiently smart completions for dd: https://github.com/scop/bash-completion/blob/master/completi...
comment by duckerude · 2019-10-10 · in A Useful Thing in Bash -
…[2]: https://hackaday.com/2018/01/19/linux-fu-custom-bash-command... [3]: https://github.com/scop/bash-completion [4]: https://github.com/git/git/blob/master/contrib/completion/gi...
comment by JoshMcguigan · 2019-05-19 · in Shell Completions in Rust -
…project. I also looked at emulating zsh but that would be a lot more work than emulating bash. [1] https://github.com/scop/bash-completion
comment by chubot · 2018-09-24 · in Creating a bash completion script -
Bash has programmable completion as well. See for example: https://github.com/scop/bash-completion
comment by icebraining · 2018-04-30 · in Ask HN: What are some amazing open source projects that you have found recently?