tmux powerline symbols not rendering properly despite having proper fonts installed

7.3k Views Asked by At

I am using this tmux configuration. It works fine, except the powerline symbols are not rendered. I have installed the correct fonts, and am using them in the terminal. From the docs:

I installed Powerline and/or (patched) fonts but can't see Powerline symbols.

First, you don't need to install Powerline. You only need fonts patched with Powerline symbols or the standalone PowerlineSymbols.otf font. Then make sure your ~/.tmux.conf.local copy uses the right code points for tmux_conf_theme_left_separator_XXX values.

I checked the config file and tried rendering the symbols, and they all work fine. unicode rendering properly

And viewing ~/.tmux.conf.local shows that these unicode characters are consistent:

.tmux.conf.local output

So I have installed the right fonts, am using the right fonts in my terminal, can render the right glyphs (when using Python). But it doesn't display in the powerline.

What can I try to do to make the symbols render correctly?

I am using Ubuntu 20.04.2 LTS, the default terminal, and tmux.

3

There are 3 best solutions below

1
On

instead of using tmux -u you could make sure that the locale is configured correctly.

try

$ sudo dpkg-reconfigure locales

and select something with UTF-8. logout, back in and tmux should just work.

verify in tmux or with echo $LANG.

0
On

enter image description here

change the settings in your ~/.tmux.conf.local as shown to enable using powerline fonts basically the below code tries to turn on powerline font as seperator while the above four lines doesn't use it

1
On

I had trouble with this too while using the ariline in vim and I found an answer that worked for me. Forgot the original source so cant link it.

Use tmux -u