2013-01-24 17:35:16 +01:00
|
|
|
|
*********************
|
|
|
|
|
Installation on Linux
|
|
|
|
|
*********************
|
|
|
|
|
|
2014-08-02 21:51:20 +02:00
|
|
|
|
The following distribution-specific packages are officially supported, and they
|
|
|
|
|
provide an easy way of installing and upgrading Powerline. The packages will
|
2015-01-08 16:24:09 +01:00
|
|
|
|
automatically do most of the configuration.
|
2013-01-24 17:35:16 +01:00
|
|
|
|
|
2015-04-04 18:22:00 +02:00
|
|
|
|
* `Arch Linux (AUR), Python 2 version <https://aur.archlinux.org/packages/python2-powerline-git/>`_
|
|
|
|
|
* `Arch Linux (AUR), Python 3 version <https://aur.archlinux.org/packages/python-powerline-git/>`_
|
2014-08-02 21:51:20 +02:00
|
|
|
|
* Gentoo Live ebuild in `raiagent <https://github.com/leycec/raiagent>`_ overlay
|
2014-10-26 12:19:32 +01:00
|
|
|
|
* Powerline package is available for Debian starting from Wheezy (via `backports
|
2014-10-25 20:55:59 +02:00
|
|
|
|
<https://packages.debian.org/wheezy-backports/powerline>`_). Use `search
|
|
|
|
|
<https://packages.debian.org/search?keywords=powerline&searchon=names&suite=all§ion=all>`_
|
|
|
|
|
to get more information.
|
2014-08-02 21:51:20 +02:00
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
If used distribution does not have an official package installation guide below
|
|
|
|
|
should be followed:
|
2014-08-02 21:51:20 +02:00
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
1. Install Python 3.2+, Python 2.6+ or PyPy and ``pip`` with ``setuptools``.
|
|
|
|
|
This step is distribution-specific, so no commands provided.
|
2015-01-07 13:20:29 +01:00
|
|
|
|
2. Install Powerline using one of the following commands:
|
2014-08-02 21:51:20 +02:00
|
|
|
|
|
2015-01-07 13:20:29 +01:00
|
|
|
|
.. code-block:: sh
|
2014-08-02 21:51:20 +02:00
|
|
|
|
|
2015-01-07 13:20:29 +01:00
|
|
|
|
pip install --user powerline-status
|
2014-08-02 21:51:20 +02:00
|
|
|
|
|
2015-01-07 13:20:29 +01:00
|
|
|
|
will get the latest release version and
|
|
|
|
|
|
|
|
|
|
.. code-block:: sh
|
|
|
|
|
|
|
|
|
|
pip install --user git+git://github.com/powerline/powerline
|
|
|
|
|
|
|
|
|
|
will get the latest development version.
|
|
|
|
|
|
|
|
|
|
.. note:: Due to the naming conflict with an unrelated project powerline is
|
|
|
|
|
named ``powerline-status`` in PyPI.
|
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
.. note::
|
|
|
|
|
Powerline developers should be aware that``pip install --editable`` does
|
|
|
|
|
not currently fully work. Installation performed this way are missing
|
|
|
|
|
``powerline`` executable that needs to be symlinked. It will be located in
|
|
|
|
|
``scripts/powerline``.
|
2014-08-03 00:43:13 +02:00
|
|
|
|
|
|
|
|
|
Fonts installation
|
|
|
|
|
==================
|
|
|
|
|
|
|
|
|
|
Fontconfig
|
|
|
|
|
----------
|
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
This method only works on Linux. It’s the second recommended method if terminal
|
|
|
|
|
emulator supports it as patching fonts is not needed, and it generally works
|
|
|
|
|
with any coding font.
|
2014-08-03 00:43:13 +02:00
|
|
|
|
|
|
|
|
|
#. Download the latest version of the symbol font and fontconfig file::
|
|
|
|
|
|
2014-12-07 14:08:24 +01:00
|
|
|
|
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf
|
|
|
|
|
wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf
|
2014-08-03 00:43:13 +02:00
|
|
|
|
|
|
|
|
|
#. Move the symbol font to a valid X font path. Valid font paths can be
|
|
|
|
|
listed with ``xset q``::
|
|
|
|
|
|
|
|
|
|
mv PowerlineSymbols.otf ~/.fonts/
|
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
#. Update font cache for the path the font was moved to (root priveleges may be
|
|
|
|
|
needed to update cache for the system-wide paths)::
|
2014-08-03 00:43:13 +02:00
|
|
|
|
|
|
|
|
|
fc-cache -vf ~/.fonts/
|
|
|
|
|
|
|
|
|
|
#. Install the fontconfig file. For newer versions of fontconfig the config
|
2014-09-20 15:40:33 +02:00
|
|
|
|
path is ``~/.config/fontconfig/conf.d/``, for older versions it’s
|
2014-08-03 00:43:13 +02:00
|
|
|
|
``~/.fonts.conf.d/``::
|
|
|
|
|
|
|
|
|
|
mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
|
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
If custom symbols still cannot be seen then try closing all instances of the
|
|
|
|
|
terminal emulator. Restarting X may be needed for the changes to take effect.
|
2014-08-03 00:43:13 +02:00
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
If custom symbols *still* can’t be seen, double-check that the font have been
|
|
|
|
|
installed to a valid X font path, and that the fontconfig file was installed to
|
|
|
|
|
a valid fontconfig path. Alternatively try to install a :ref:`patched font
|
|
|
|
|
<installation-patched-fonts>`.
|
2014-08-03 00:43:13 +02:00
|
|
|
|
|
|
|
|
|
Patched font installation
|
|
|
|
|
-------------------------
|
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
This is the preferred method, but it is not always available because not all
|
|
|
|
|
fonts were patched and not all fonts *can* be patched due to licensing issues.
|
|
|
|
|
|
|
|
|
|
After downloading font the following should be done:
|
2014-08-03 00:43:13 +02:00
|
|
|
|
|
|
|
|
|
#. Move the patched font to a valid X font path. Valid font paths can be
|
|
|
|
|
listed with ``xset q``::
|
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
mv 'SomeFont for Powerline.otf' ~/.fonts/
|
2014-08-03 00:43:13 +02:00
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
#. Update font cache for the path the font was moved to (root priveleges may be
|
|
|
|
|
needed for updating font cache for some paths)::
|
2014-08-03 00:43:13 +02:00
|
|
|
|
|
|
|
|
|
fc-cache -vf ~/.fonts/
|
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
After installing patched font terminal emulator, GVim or whatever application
|
|
|
|
|
powerline should work with must be configured to use the patched font. The
|
|
|
|
|
correct font usually ends with *for Powerline*.
|
2014-08-03 00:43:13 +02:00
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
If custom symbols cannot be seen then try closing all instances of the terminal
|
|
|
|
|
emulator. X server may need to be restarted for the changes to take effect.
|
2014-08-03 00:43:13 +02:00
|
|
|
|
|
2015-01-08 16:24:09 +01:00
|
|
|
|
If custom symbols *still* can’t be seen then double-check that the font have
|
|
|
|
|
been installed to a valid X font path.
|