You can install xonsh using homebrew, conda, pip, or from source.
$ brew install xonsh
$ conda config --add channels conda-forge $ conda install xonsh
$ pip3 install xonsh
$ python3 setup.py install
Extras for OSX¶
On Mac OSX, it is strongly recommended to install the
gnureadline library if using the readline shell.
gnureadline can be installed via pip:
$ pip3 install gnureadline
Xonsh has support for using bash completion files on the shell, to use it you need to install the bash-completion package. The regular bash-completion package uses v1 which mostly works, but occasionally has rough edges so we recommend using bash-completion v2 which is installed using the bash-completion2 package.
$ brew install bash-completion2
Xonsh currently has the following external dependencies,
- Python v3.4+
- PLY (optional, included with xonsh)
Pip supports “extra” dependencies in the form of
the list in the brackets identify the optional features
Xonsh currently has the following extras
ptk: prompt-toolkit: advanced readline library, line-editing
proctitle: setproctitle: change the title of terminal to reflect the current subprocess
linux: distro: linux specific platform information
mac: gnureadline: GNU’s featureful version of readline
win: win_unicode_console: enables the use of Unicode in windows consoles
In addition, xonsh integrates with Jupyter, an in-browser REPL, enabling the use of xonsh in jupyter notebooks