Making Powerline Work With Tmux And ZSH
After hearing good things about Powerline for a while, today I finally decided to install Powerline on tmux. However, it didn’t work when I followed the directions. Apparently, this is a common error.
To get it working, I placed the following in my ~/.tmux.conf
, in addition to source
ing the powerline.conf
:
1 | set -g status-right '#(.local/bin/powerline tmux right)' |
Basically, tmux does not load the PATH
variable in your .zshrc
. Therefore, you have to specify the path that powerline is installed at in your ~/.tmux.conf
.
If this does not work, you can also try this:
1 | tmux set -g status-right '#(/usr/local/share/python/powerline tmux right)' |
This uses powerline if you installed it as root.
Thanks for reading my post! If you enjoyed it or it helped you, please consider liking/tweeting this page, commenting, or following me on GitHub or Twitter!