Skip to content

jakobgager/IPy_bash_complete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

IPython bash completion

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

Install

  1. clone the repo into the .config/ipython directory (or any other directory)
  2. source the script / add the following line to your .bashrc/.zshrc (adapt if necessary):
source ~/.config/ipython/IPy_bash_complete/ipython-completion.bash

About

Bash complete script to get completion in the terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages