python脚本的bash完成实用程序
pybashcomplete的Python项目详细描述
python脚本的bash完成实用程序
安装
使用pip安装,然后安装bash completion config:
$ pip install pybashcomplete
或者对于最新版本,从项目根目录运行:
$ python setup.py install
要将bash完成脚本安装到/etc/bash_completion.d/pybashcomplete中,需要 使用sudo或root运行安装脚本:
$ sudo pybashcomplete-install
安装后,必须手动获取文件源:
$ . /etc/bash_completion.d/pybashcomplete
用法
只需运行一个python脚本并使用tab completion:
$ python test.py --deb[TAB] $ python test.py --debug $ python test.py --d[TAB][TAB] --debug --demo $ python test.py --d
发行说明
0.0.3: | Made installation script for bash completion script |
---|---|
0.0.2: | Fixed a few initial bugs |
0.0.1: | Project created |