bash-completion
3,544
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Shell
语言
—
创建时间
最近更新
项目能做什么
用于 Bash 的可编程命令自动补全函数集合。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# bash-completion
[](https://github.com/scop/bash-completion/actions/workflows/ci.yaml)
[](https://scorecard.dev/viewer/?uri=github.com%2Fscop%2Fbash-completion)
## Introduction
bash-completion is a collection of
[command-line completion](https://en.wikipedia.org/wiki/Command-line_completion)
recipes for a number of commands for the completion system of the
[Bash shell](https://www.gnu.org/software/bash/).
These recipes enhance Bash's typical plain completion of filenames to
provide better suggestions of options and arguments for many commands.
Also provided is a collection of helper functions to assist in creating new
recipes, and a set of facilities for loading recipes automatically on
demand, as well as installing them.
## Installation
The easiest way to install this software is to use a package; refer to
[Repology](https://repology.org/project/bash-completion) for a comprehensive
list of operating system distributions, package names, and available versions.
Depending on the package, you may still
need to source it from either `/etc/bashrc` or `~/.bashrc` (or any
other file sourcing those). If you have _only_ bash >= 4.2 installed, you can
do this by using:
```bash
# Use bash-completion, if available, and avoid double-sourcing
[[ $PS1 &&
! ${BASH_COMPLETION_VERSINFO:-} &&
-f /usr/share/bash-completion/bash_completion ]] &&
. /usr/share/bash-completion/bash_completion
```
If you have older bash versions in use, their loading of `bash_completion`
should be prevented. See further for more info.
If you don't have the package readily available for your distribution, or
you simply don't want to use one, you can install bash-completion using the
standard commands for GNU autotools packages:
```shell
autoreconf -i # if not installing from prepared release tarball
./configure
make # GNU make required
make check # optional
make install # as root
make installcheck # optional, requires python3 with pytest >= 3.6, pexpect
```
These commands install the completions and helpers, as well as a
`profile.d` script that loads `bash_completion` where appropriate.
If your system does not use the `profile.d` directory (usually below
`/etc`) mechanism (i.e., does not automatically source shell scripts in
it), you can source the `$sysconfdir/profile.d/bash_completion.sh`
script in `/etc/bashrc` or `~/.bashrc`.
The `profile.d` script provides a configuration file hook that can be
used to prevent loading `bash_completion` on a per user basis when it's
installed system wide. To do this:
1. Turn off programmable completion with `shopt -u progcomp` in
`$XDG_CONFIG_HOME/bash_completion` (or `~/.config/bash_completion`
if `$XDG_CONFIG_HOME` is not set)
2. Turn it back on (for example in `~/.bashrc`) if you want to use
programmable complet
阅读完整原文
项目深度分析 规则生成(AI 未配置)
综合评分 41.6 分。该项目在“个人可实施性”维度得 35 分,“付费可能性”维度得 20.0 分,差异化空间 70.0 分(评分依据见评分卡)。
面向细分需求的二次开发产品
| 产品构想 | 基于 bash-completion 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建时间待补全,最近推送 ,发布过 17 个 Release |
| 社区活跃 | Star 3,544 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。