APT tabcomplete support for the Xonsh shell
Project description
xonsh-apt-tabcomplete - APT tab completion for the Xonsh shell
Installing
Installation is done the normal way for setuptools-based projects:
python setup.py install
You can also use pip, of course:
pip install xonsh-apt-tabcomplete
Note that in the specific case of Xonsh, make sure you use your Python 3 executable to run setup.py, since as of this writing that’s all Xonsh supports.
Next, you’ll have to add a line to your .xonshrc file to load the plugin:
xontrib load apt_tabcomplete
If you have the bash completer installed, then you should also add the following lines to ensure that apt_tabcomplete is loaded before the bash completer:
completer remove auto_apt completer add auto_apt apt_completer "<bash"
Reload your shell, and you’re good to go.
Usage
Tabcomplete works the way you’d expect when using apt. Just hit tab when you’d like to see what packages have a name starting with what you’ve typed so far. Currently just the install/remove commands for apt-get and the search command for apt-cache are supported (with apt-get remove only tabcompleting to installed packages), but I am open to adding more functionality upon request.
Known issues
You may have to hit tab twice to get the plugin to autocomplete. I’m still not sure why this is, unfortunately.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for xonsh-apt-tabcomplete-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fabe12a508d49e8292cdfdce29819c603dd99d86cfc441eb080d147b67f3ea07 |
|
MD5 | 089aa51478401985915bdac2c9ea629c |
|
BLAKE2b-256 | 3e16659dada7bdcd9fad0871ecb06f7270d72df87a7d368c199549e5a1e73f50 |