2013-01-24 17:35:16 +01:00
|
|
|
|
********************
|
|
|
|
|
Installation on OS X
|
|
|
|
|
********************
|
|
|
|
|
|
2014-08-02 21:51:20 +02:00
|
|
|
|
Python package
|
|
|
|
|
==============
|
2013-01-24 17:35:16 +01:00
|
|
|
|
|
2014-08-02 21:51:20 +02:00
|
|
|
|
1. Install a proper Python version (see `issue #39
|
2014-12-07 14:08:24 +01:00
|
|
|
|
<https://github.com/powerline/powerline/issues/39>`_ for a discussion
|
2014-08-02 21:51:20 +02:00
|
|
|
|
regarding the required Python version on OS X)::
|
|
|
|
|
|
|
|
|
|
sudo port select python python27-apple
|
|
|
|
|
|
|
|
|
|
. You may use homebrew for this::
|
|
|
|
|
|
|
|
|
|
brew install python
|
|
|
|
|
|
|
|
|
|
.
|
|
|
|
|
|
2014-08-31 19:33:56 +02:00
|
|
|
|
.. note::
|
|
|
|
|
In case you want or have to use ``powerline.sh`` socat-based client you
|
|
|
|
|
should also install GNU env named ``genv``. This may be achieved by
|
|
|
|
|
running ``brew install coreutils``.
|
2014-08-26 17:31:10 +02:00
|
|
|
|
|
2014-08-02 21:51:20 +02:00
|
|
|
|
2. Install Powerline using the following command::
|
|
|
|
|
|
2014-12-07 14:08:24 +01:00
|
|
|
|
pip install --user git+git://github.com/powerline/powerline
|
2014-08-02 21:51:20 +02:00
|
|
|
|
|
2014-08-31 19:33:56 +02:00
|
|
|
|
.. warning::
|
|
|
|
|
When using ``brew install`` to install Python one must not supply
|
|
|
|
|
``--user`` flag to ``pip``.
|
2014-08-02 21:51:20 +02:00
|
|
|
|
|
2014-08-31 19:33:56 +02:00
|
|
|
|
.. note::
|
2014-11-18 21:35:46 +01:00
|
|
|
|
Due to the naming conflict with an unrelated project powerline is named
|
|
|
|
|
``powerline-status`` in PyPI.
|
2014-08-02 21:51:20 +02:00
|
|
|
|
|
2014-08-31 19:33:56 +02:00
|
|
|
|
.. note::
|
|
|
|
|
If you are powerline developer you should be aware that ``pip install
|
|
|
|
|
--editable`` does not currently fully work. If you install powerline this
|
|
|
|
|
way you will be missing ``powerline`` executable and need to symlink it. It
|
|
|
|
|
will be located in ``scripts/powerline``.
|
2014-08-02 21:51:20 +02:00
|
|
|
|
|
|
|
|
|
Vim installation
|
|
|
|
|
================
|
|
|
|
|
|
|
|
|
|
Any terminal vim version with Python 3.2+ or Python 2.6+ support should work,
|
2014-09-20 15:40:33 +02:00
|
|
|
|
but if you’re using MacVim you need to install it using the following command::
|
2014-08-02 21:51:20 +02:00
|
|
|
|
|
|
|
|
|
brew install macvim --env-std --override-system-vim
|
2014-08-03 00:43:13 +02:00
|
|
|
|
|
|
|
|
|
Fonts installation
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
Install downloaded patched font by double-clicking the font file in Finder, then
|
|
|
|
|
clicking :guilabel:`Install this font` in the preview window.
|
|
|
|
|
|
|
|
|
|
After installing the patched font you need to update MacVim or your terminal
|
|
|
|
|
emulator to use the patched font. The correct font usually ends with *for
|
|
|
|
|
Powerline*.
|