2016-03-13 21:51:59 -04:00
==========================
OSX Guide
==========================
Installation
============
2016-06-05 15:48:46 -04:00
You can install xonsh using homebrew, conda, pip, or from source.
**homebrew:**
2016-08-18 14:18:57 -04:00
.. code-block :: console
2016-06-05 15:48:46 -04:00
$ brew install xonsh
2016-03-13 21:51:59 -04:00
**conda:**
2016-08-18 14:18:57 -04:00
.. code-block :: console
2016-03-13 21:51:59 -04:00
2016-06-07 10:41:08 +02:00
$ conda config --add channels conda-forge
$ conda install xonsh
2016-03-13 21:51:59 -04:00
**pip:**
2016-08-18 14:18:57 -04:00
.. code-block :: console
2016-03-13 21:51:59 -04:00
2016-07-07 10:29:41 +02:00
$ pip3 install xonsh
2016-03-13 21:51:59 -04:00
2016-06-28 12:29:42 +08:00
**source:** Download the source `from github <https://github.com/xonsh/xonsh> `_
(`zip file <https://github.com/xonsh/xonsh/archive/master.zip> `_ ), then run
2016-03-13 21:51:59 -04:00
the following from the source directory,
2016-08-18 14:18:57 -04:00
.. code-block :: console
2016-03-13 21:51:59 -04:00
2016-07-07 10:29:41 +02:00
$ python3 setup.py install
2016-03-13 21:51:59 -04:00
2016-07-07 10:29:41 +02:00
Extras for OSX
==============
2016-03-13 21:51:59 -04:00
2016-07-07 10:29:41 +02:00
On Mac OSX, it is *strongly* recommended to install the `` gnureadline `` library if using the readline shell. `` gnureadline `` can be installed via pip:
2016-05-31 23:12:59 -04:00
2016-08-18 14:18:57 -04:00
.. code-block :: console
2016-05-31 23:12:59 -04:00
2016-07-07 10:29:41 +02:00
$ pip3 install gnureadline
2016-05-31 23:12:59 -04:00
2017-01-26 11:00:22 -07:00
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 <https://github.com/xonsh/xonsh/issues/2111> `_ so we recommend using bash-completion v2 which is installed using the bash-completion2 package.
2016-05-31 23:12:59 -04:00
2016-08-18 14:18:57 -04:00
.. code-block :: console
2016-05-31 23:12:59 -04:00
2017-01-26 11:00:22 -07:00
$ brew install bash-completion2
2016-07-07 10:29:41 +02:00
2016-10-25 11:47:58 -04:00
.. include :: dependencies.rst
2016-07-07 10:29:41 +02:00
2016-10-25 11:47:58 -04:00
Customization
=============
2016-07-07 10:29:41 +02:00
2016-10-25 11:47:58 -04:00
See the `xonsh customization guide <customization.html> `_ for more details on setting up `` xonsh `` !