mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
Merge branch 'troubleshooting' into develop
This commit is contained in:
commit
386d0f0d5e
@ -13,29 +13,6 @@ System-specific issues
|
|||||||
Common issues
|
Common issues
|
||||||
=============
|
=============
|
||||||
|
|
||||||
I’m using tmux and Powerline looks like crap, what’s wrong?
|
|
||||||
-----------------------------------------------------------
|
|
||||||
|
|
||||||
* You need to tell tmux that it has 256-color capabilities. Add this to your
|
|
||||||
:file:`.tmux.conf` to solve this issue::
|
|
||||||
|
|
||||||
set -g default-terminal "screen-256color"
|
|
||||||
* If you’re using iTerm2, make sure that you have enabled the setting
|
|
||||||
:guilabel:`Set locale variables automatically` in :menuselection:`Profiles -->
|
|
||||||
Terminal --> Environment`.
|
|
||||||
* Make sure tmux knows that terminal it is running in support 256 colors. You
|
|
||||||
may tell it tmux by using ``-2`` option when launching it.
|
|
||||||
|
|
||||||
I’m using tmux/screen and Powerline is colorless
|
|
||||||
------------------------------------------------
|
|
||||||
|
|
||||||
* If the above advices do not help, then you need to disable
|
|
||||||
:ref:`term_truecolor <config-common-term_truecolor>`.
|
|
||||||
* Alternative: set :ref:`additional_escapes <config-common-additional_escapes>`
|
|
||||||
to ``"tmux"`` or ``"screen"``. Note that it is known to work perfectly in
|
|
||||||
screen, but in tmux it may produce ugly spaces.
|
|
||||||
|
|
||||||
|
|
||||||
After an update something stopped working
|
After an update something stopped working
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
@ -120,9 +97,62 @@ make powerline package importable anywhere: use
|
|||||||
|
|
||||||
pip install --user --editable path/to/powerline
|
pip install --user --editable path/to/powerline
|
||||||
|
|
||||||
|
Tmux/screen-related issues
|
||||||
|
==========================
|
||||||
|
|
||||||
|
I’m using tmux and Powerline looks like crap, what’s wrong?
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
* You need to tell tmux that it has 256-color capabilities. Add this to your
|
||||||
|
:file:`.tmux.conf` to solve this issue::
|
||||||
|
|
||||||
|
set -g default-terminal "screen-256color"
|
||||||
|
* If you’re using iTerm2, make sure that you have enabled the setting
|
||||||
|
:guilabel:`Set locale variables automatically` in :menuselection:`Profiles -->
|
||||||
|
Terminal --> Environment`.
|
||||||
|
* Make sure tmux knows that terminal it is running in support 256 colors. You
|
||||||
|
may tell it tmux by using ``-2`` option when launching it.
|
||||||
|
|
||||||
|
I’m using tmux/screen and Powerline is colorless
|
||||||
|
------------------------------------------------
|
||||||
|
|
||||||
|
* If the above advices do not help, then you need to disable
|
||||||
|
:ref:`term_truecolor <config-common-term_truecolor>`.
|
||||||
|
* Alternative: set :ref:`additional_escapes <config-common-additional_escapes>`
|
||||||
|
to ``"tmux"`` or ``"screen"``. Note that it is known to work perfectly in
|
||||||
|
screen, but in tmux it may produce ugly spaces.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
Both tmux and screen are not resending sequences escaped in such a way. Thus
|
||||||
|
even though additional escaping will work for the last shown prompt,
|
||||||
|
highlighting will eventually go away when tmux or screen will redraw screen
|
||||||
|
for some reason.
|
||||||
|
|
||||||
|
E.g. in screen it will go away when you used copy mode and prompt got out of
|
||||||
|
screen and in tmux it will go away immediately after you press ``<Enter>``.
|
||||||
|
|
||||||
|
In tmux there is a green bar in place of powerline
|
||||||
|
--------------------------------------------------
|
||||||
|
|
||||||
|
In order for tmux bindings to work ``powerline-config`` script is required to be
|
||||||
|
present in ``$PATH``. Alternatively one may define ``$POWERLINE_CONFIG_COMMAND``
|
||||||
|
environment variable pointing to the location of the script. *This variable must
|
||||||
|
be defined prior to launching tmux server and in the environment where server is
|
||||||
|
started from.*
|
||||||
|
|
||||||
Shell issues
|
Shell issues
|
||||||
============
|
============
|
||||||
|
|
||||||
|
When sourcing shell bindings it complains about missing command or file
|
||||||
|
-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
If you are using ``pip`` based installation do not forget to add pip-specific
|
||||||
|
executable path to ``$PATH`` environment variable. This path usually looks
|
||||||
|
something like ``$HOME/.local/bin`` (linux) or
|
||||||
|
``$HOME/Library/Python/{python_version}/bin`` (OS X). One may check out where
|
||||||
|
``powerline-config`` script was installed by using ``pip show -f
|
||||||
|
powerline-status | grep powerline-config`` (does not always work).
|
||||||
|
|
||||||
I am suffering bad lags before displaying shell prompt
|
I am suffering bad lags before displaying shell prompt
|
||||||
------------------------------------------------------
|
------------------------------------------------------
|
||||||
|
|
||||||
@ -171,8 +201,8 @@ My vim statusline has a lot of ``^`` or underline characters in it!
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
|
||||||
* You need to configure the ``fillchars`` setting to disable statusline
|
* You need to configure the ``fillchars`` setting to disable statusline
|
||||||
fillchars (see ``:h fillchars`` for details). Add this to your
|
fillchars (see ``:h 'fillchars'`` for details). Add this to your :file:`vimrc`
|
||||||
:file:`vimrc` to solve this issue:
|
to solve this issue:
|
||||||
|
|
||||||
.. code-block:: vim
|
.. code-block:: vim
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user