Running OS X 10.11 Beta 6, and Bash 3.2.
It seems that the rootless changes to the way the system Python are able to access /usr is causing an issue with powerline-config.
Tmux is unable to show any components in the powerline statusbar and when trying to manually source .tmux.conf from within tmux the following is returned:
'powerline-config tmux setup' returned 127
Exit status 127 means “command not found”. It has absolutely nothing to do with /usr _unless_ pip (or brew?) installed powerline to /usr. For powerline-config to work it must be contained in some directory in $PATH, _and_ $PATH must be defined this way _before_ tmux server is started.
You are correct; It appears that the brew-installed /Library/Python/2.7/bin dir was not added to PATH automatically. Doing so has resolved the issue.
I've run into many brew issues so far in the 10.11 beta, so this is not surprising. Thanks for the quick reply.
fixed for me:
$ brew install powerline
==> Downloading https://homebrew.bintray.com/bottles/powerline-2.3.el_capitan.bottle.tar
==> Pouring powerline-2.3.el_capitan.bottle.tar.gz
🍺 /usr/local/Cellar/powerline/2.3: 198 files, 631.4K
vit@pro 11:59:21 [ ~ ]
$ powerline
powerline powerline-daemon powerline-render
powerline-config powerline-lint
then Prefix + ALT+U works fine.
Problem appeared after migrating from Linux to OSX ;)
I am still having this problem, all the above suggestions didn't help @ZyX-I
michael-heuberger@abc ~ ❯❯❯ tmux source ~/.tmux.conf
'powerline-config tmux setup' returned 127
Setting up the python paths here in .zshrc only (not in any bash files) and using pyenv:
michael-heuberger@abc ~ ❯❯❯ which powerline-config
/home/michael-heuberger/.pyenv/shims/powerline-config
loading pyend like that in .zshrc
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
The .../tmux/powerline.conf file reads:
if-shell 'env "$POWERLINE_CONFIG_COMMAND" tmux setup' '' 'run-shell "powerline-config tmux setup"'
# vim: ft=tmux
So, this issue is resolved if I add env "$POWERLINE_CONFIG_COMMAND" tmux setup to ~/.bash_profile
But I then get an error in bash that says approximately 'env not defined'
I think it would be better to just drop the if-shell requirement in powerline.conf, since we're only calling powerline.conf in ~/.tmux.conf
run-shell "powerline-config tmux setup"
# vim: ft=tmux
This resolves the issue for me.
Alternatively, you could just add
run-shell "powerline-config tmux setup" to ~/.tmux.conf instead of source ~/...
Most helpful comment
fixed for me:
$ brew install powerline
==> Downloading https://homebrew.bintray.com/bottles/powerline-2.3.el_capitan.bottle.tar
################################################################## 100.0%
==> Pouring powerline-2.3.el_capitan.bottle.tar.gz
🍺 /usr/local/Cellar/powerline/2.3: 198 files, 631.4K
vit@pro 11:59:21 [ ~ ]
$ powerline
powerline powerline-daemon powerline-render
powerline-config powerline-lint
then Prefix + ALT+U works fine.
Problem appeared after migrating from Linux to OSX ;)