Xontribs¶
The following lists known xonsh contributions (xontribs), a description of the
xontrib, and how to get your hands on it. Once installed, these xontribs
can be loaded into your session by adding them to your xonshrc file or on the
command line using the xontrib
command:
>>> xontrib mpl xo ...
Information¶
abbrevs¶
- Website
- Package
xonsh website, BSD 3-clause
Adds abbrevs
dictionary to hold user-defined command abbreviations. The dictionary is searched as you type and the matching words are replaced at the command line by the corresponding dictionary contents once you hit ‘Space’ or ‘Return’ key. For instance a frequently used command such as git status
can be abbreviated to gst
as follows:
$ xontrib load abbrevs
$ abbrevs['gst'] = 'git status'
$ gst # Once you hit <space> or <return>, 'gst' gets expanded to 'git status'.
This xontrib is preinstalled with xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load abbrevs
apt_tabcomplete¶
- Website
- Package
xonsh-apt-tabcomplete website, BSD 2-clause
Adds tabcomplete functionality to apt-get/apt-cache inside of xonsh.
Installation:
# install with pip
xpip install xonsh-apt-tabcomplete
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load apt_tabcomplete
argcomplete¶
- Website
- Package
xontrib-argcomplete
Argcomplete support to tab completion of python and xonsh scripts in xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load argcomplete
autojump¶
- Website
- Package
xontrib-autojump
autojump support for xonsh
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load autojump
autovox¶
- Website
- Package
xonsh website, BSD 3-clause
Manages automatic activation of virtual environments.
This xontrib is preinstalled with xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load autovox
autoxsh¶
- Website
- Package
xonsh-autoxsh website, GPLv3
Adds automatic execution of xonsh script files called .autoxsh
when enterting a directory with cd
function
Installation:
# install with pip
xpip install xonsh-autoxsh
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load autoxsh
avox¶
- Website
- Package
xontrib-avox website, GPLv3
Automatic (de)activation of virtual environments as you cd around
Installation:
# install with pip
xpip install xontrib-avox
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load avox
base16_shell¶
- Website
- Package
xontrib-base16-shell
Change base16 shell themes
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load base16_shell
bashisms¶
- Website
- Package
xonsh website, BSD 3-clause
Enables additional Bash-like syntax while at the command prompt. For example, the !!
syntax for running the previous command is now usable. Note that these features are implemented as precommand events and these additions do not affect the xonsh language when run as script. That said, you might find them useful if you have strong muscle memory.
Warning: This xontrib may modify user command line input to implement its behavior. To see the modifications as they are applied (in unified diffformat), please set $XONSH_DEBUG
to 2
or higher.
The xontrib also adds commands: alias
, export
, unset
, set
, shopt
, complete
.
This xontrib is preinstalled with xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load bashisms
coreutils¶
- Website
- Package
xonsh website, BSD 3-clause
Additional core utilities that are implemented in xonsh. The current list includes:
cat
echo
pwd
tee
tty
yes
In many cases, these may have a lower performance overhead than the posix command line utility with the same name. This is because these tools avoid the need for a full subprocess call. Additionally, these tools are cross-platform.
This xontrib is preinstalled with xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load coreutils
direnv¶
- Website
- Package
xonsh-direnv website, MIT
Supports direnv.
Installation:
# install with pip
xpip install xonsh-direnv
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load direnv
distributed¶
- Website
- Package
xonsh website, BSD 3-clause
The distributed parallel computing library hooks for xonsh. Importantly this provides a substitute ‘dworker’ command which enables distributed workers to have access to xonsh builtins.
Furthermore, this xontrib adds a ‘DSubmitter’ context manager for executing a block remotely. Moreover, this also adds a convenience function ‘dsubmit()’ for creating DSubmitter and Executor instances at the same time. Thus users may submit distributed jobs with:
with dsubmit('127.0.0.1:8786', rtn='x') as dsub:
x = $(echo I am elsewhere)
res = dsub.future.result()
print(res)
This is useful for long running or non-blocking jobs.
This xontrib is preinstalled with xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load distributed
docker_tabcomplete¶
- Website
- Package
Adds tabcomplete functionality to docker inside of xonsh.
Installation:
# install with pip
xpip install xonsh-docker-tabcomplete
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load docker_tabcomplete
free_cwd¶
- Website
- Package
xonsh website, BSD 3-clause
Windows only xontrib, to release the lock on the current directory whenever the prompt is shown. Enabling this will allow the other programs or Windows Explorer to delete or rename the current or parent directories. Internally, it is accomplished by temporarily resetting CWD to the root drive folder while waiting at the prompt. This only works with the prompt_toolkit backend and can cause cause issues if any extensions are enabled that hook the prompt and relies on os.getcwd()
This xontrib is preinstalled with xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load free_cwd
fzf-widgets¶
- Website
- Package
xontrib-fzf-widgets website, GPLv3
Adds some fzf widgets to your xonsh shell.
Installation:
# install with pip
xpip install xontrib-fzf-widgets
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load fzf-widgets
histcpy¶
- Website
- Package
xontrib-histcpy website, GPLv3
Useful aliases and shortcuts for extracting links and textfrom command output history and putting them into the clipboard.
Installation:
# install with pip
xpip install xontrib-histcpy
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load histcpy
jedi¶
- Website
- Package
xonsh website, BSD 3-clause
Use Jedi as xonsh’s python completer.
This xontrib is preinstalled with xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load jedi
kitty¶
- Website
- Package
xontrib-kitty website, BSD-3-Clause
Xonsh hooks for the Kitty terminal emulator.
Installation:
# install with conda
conda install -c conda-forge xontrib-kitty # install with pip
xpip install xontrib-kitty
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load kitty
mpl¶
- Website
- Package
xonsh website, BSD 3-clause
Matplotlib hooks for xonsh, including the new ‘mpl’ alias that displays the current figure on the screen.
This xontrib is preinstalled with xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load mpl
onepath¶
- Website
- Package
xontrib-onepath
When you click to a file or folder in graphical OS they will be opened in associated app.The xontrib-onepath brings the same logic for the xonsh shell. Type the filename or pathwithout preceding command and an associated action will be executed. The actions are customizable.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load onepath
output_search¶
- Website
- Package
xontrib-output-search
Get identifiers, names, paths, URLs and words from the previous command output and use them for the next command.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load output_search
pdb¶
- Website
- Package
xonsh website, BSD 3-clause
Simple built-in debugger. Runs pdb on reception of SIGUSR1 signal.
This xontrib is preinstalled with xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load pdb
pipeliner¶
- Website
- Package
xontrib-pipeliner
Let your pipe lines flow thru the Python code in xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load pipeliner
powerline¶
- Website
- Package
Powerline for Xonsh shell
Installation:
# install with pip
xpip install xontrib-powerline
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load powerline
powerline-binding¶
- Website
- Package
Uses powerline to render the xonsh prompt
Installation:
# install with pip
xpip install xontrib-powerline-binding
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load powerline-binding
prompt_bar¶
- Website
- Package
xontrib-prompt-bar
An elegance bar style for prompt.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load prompt_bar
prompt_ret_code¶
- Website
- Package
xonsh website, BSD 3-clause
Adds return code info to the prompt
This xontrib is preinstalled with xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load prompt_ret_code
prompt_vi_mode¶
- Website
- Package
vi-mode status formatter for xonsh prompt
Installation:
# install with pip
xpip install xontrib-prompt-vi-mode
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load prompt_vi_mode
pyenv¶
- Website
- Package
pyenv integration for xonsh.
Installation:
# install with pip
xpip install xontrib-pyenv
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load pyenv
readable-traceback¶
- Website
- Package
Make traceback easier to see for xonsh.
Installation:
# install with pip
xpip install xontrib-readable-traceback
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load readable-traceback
schedule¶
- Website
- Package
Xonsh Task Scheduling
Installation:
# install with pip
xpip install xontrib-schedule
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load schedule
scrapy_tabcomplete¶
- Website
- Package
Adds tabcomplete functionality to scrapy inside of xonsh.
Installation:
# install with pip
xpip install xonsh-scrapy-tabcomplete
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load scrapy_tabcomplete
ssh_agent¶
- Website
- Package
ssh-agent integration
Installation:
# install with pip
xpip install xontrib-ssh-agent
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load ssh_agent
vox¶
- Website
- Package
xonsh website, BSD 3-clause
Python virtual environment manager for xonsh.
This xontrib is preinstalled with xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load vox
vox_tabcomplete¶
- Website
- Package
Adds tabcomplete functionality to vox inside of xonsh.
Installation:
# install with pip
xpip install xonsh-vox-tabcomplete
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load vox_tabcomplete
whole_word_jumping¶
- Website
- Package
xonsh website, BSD 3-clause
Jumping across whole words (non-whitespace) with Ctrl+Left/Right. Alt+Left/Right remains unmodified to jump over smaller word segments. Shift+Delete removes the whole word.
This xontrib is preinstalled with xonsh.
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load whole_word_jumping
xo¶
- Website
- Package
exofrills website, WTFPL
Adds an ‘xo’ alias to run the exofrills text editor in the current Python interpreter session. This shaves off a bit of the startup time when running your favorite, minimal text editor.
Installation:
# install with conda
conda install -c conda-forge xo # install with pip
xpip install exofrills
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load xo
xpg¶
- Website
- Package
xontrib-xpg website, Apache
Run/plot/explain sql query for PostgreSQL.
Installation:
# install with pip
xpip install xontrib-xpg
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load xpg
z¶
- Website
- Package
xontrib-z website, GPLv3
Tracks your most used directories, based on ‘frecency’.
Installation:
# install with pip
xpip install xontrib-z
Usage:
Run the following command to enable (or add it to your .xonshrc file to enable on startup.)
xontrib load z