Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tmux status bar not displaying segments on Yosemite #1121

Closed
iakshay opened this issue Oct 18, 2014 · 8 comments
Closed

Tmux status bar not displaying segments on Yosemite #1121

iakshay opened this issue Oct 18, 2014 · 8 comments

Comments

@iakshay
Copy link

iakshay commented Oct 18, 2014

image

After upgrading to Yosemite, tmux status bar isn't showing properly (no segments are visible) and status bar has green background color.

Running tmux 1.9a, have the following lines in tmux config.

# Status bar customization
run-shell "powerline-daemon -q"
source /usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf
@ZyX-I
Copy link
Contributor

ZyX-I commented Oct 18, 2014

What does powerline-config tmux source show?

@iakshay
Copy link
Author

iakshay commented Oct 18, 2014

Shows nothing. Actually that command removed the green background color! But still no segments on the right.

@iakshay
Copy link
Author

iakshay commented Oct 18, 2014

Is this a known issue? #150

powerline tmux right shows the segment output.

@ZyX-I
Copy link
Contributor

ZyX-I commented Oct 18, 2014

@iakshay I actually expected it to fail with “command not found”: if tmux is configured properly powerline-config is run from tmux configuration and green background indicates that it was not run. Wondering whether it works when running

set -g status-right '#(powerline-client tmux right -R pane_id=`tmux display -p "#D"`)'

explicitly from tmux. Also what is the output of

for e in COMMAND CONFIG ; do tmux show-environment -g POWERLINE_$e ; done

? It should be

POWERLINE_COMMAND=powerline
POWERLINE_CONFIG=powerline-config

if powerline was installed correctly. But there may be leftovers from whatever because tmux remembers environment from the point server was started and does not change it when client starts.

@ZyX-I
Copy link
Contributor

ZyX-I commented Oct 18, 2014

By the way, what powerline version are you using?

@iakshay
Copy link
Author

iakshay commented Oct 18, 2014

I got this output
image

How can I check the version? IIRC, I just updated with pip using git yesterday :)

@ZyX-I
Copy link
Contributor

ZyX-I commented Oct 18, 2014

Wondering where I did get POWERLINE_CONFIG: actual implementation is using POWERLINE_CONFIG_COMMAND and POWERLINE_CONFIG only for zsh/zpython overrides.

So test should look like

for e in {CONFIG_,}COMMAND ; do tmux show-environment -g POWERLINE_$e ; done

with the following result:

POWERLINE_CONFIG_COMMAND=powerline-config
POWERLINE_COMMAND=powerline

.

POWERLINE_CONFIG is used in shell bindings and its absense only indicates that server was not started from shell or that you were not using powerline in the shell you started tmux server from (most likely the second since I do not see powerline on the screenshot). This will be yet another consistency issue I will have to postpone after next major release though.


I have no idea how to check version for pip install git+git:// builds. I am not sure it is even saved though.

Also after updating did you restart tmux server? (It can be killed for sure with tmux kill-server, but all sessions are obviously lost.)

@iakshay
Copy link
Author

iakshay commented Oct 18, 2014

Gotcha, just need to kill the server. I did try deleting and creating session but I think that didn't kill the tmux server.

Thanks alot.


Summary -

  1. Running Mavericks, everything works fine.
  2. Upgraded to Yosemite, right segments disappeared.
  3. Upgraded powerline, thinking the issue might be resolved. Recreated tmux session, but didn't kill the tmux server.
  4. Killed tmux server, and right segments are back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants