Bash complete script to get completion in the terminal.
Works only with bash.
The contained completion routines provide support for completing:
- subcommands
- options for ipython and subcommands (derived by --help)
- nbconvert --to={latex, markdown, rst, html, custom, python, slides}
- nbconvert --post={pdf| serve} (dependent on --to)
- nbconvert --template={basic, article, book|basic, full} (dependent on --to)
- ipython filename.py completion
- ipython {notebook, nbconvert} filename.ipynb completion
The script uses the --help
and --help-all
option to get all possible options.
If this is too slow, it would be possible to add a preprocessing step (not implemented).
Current limitations:
- no logic is implemented to validate combinations
- folder completion does not strip dotdirs
- option choices are not parsed but hardcoded
- clone the repo into the .config/ipython directory (or any other directory)
- source the script / add the following line to your .bashrc/.zshrc (adapt if necessary):
source ~/.config/ipython/IPy_bash_complete/ipython-completion.bash