powerline-go
powerline-go copied to clipboard
Newline flag removes right modules
Using v1.13.0
with this config:
function powerline_precmd() {
eval "$($GOPATH/bin/powerline-go -error $? -shell zsh -eval -newline -modules 'venv,cwd,perms,git,jobs,exit,root,vgo' -modules-right 'aws')"
}
function install_powerline_precmd() {
for s in "${precmd_functions[@]}"; do
if [ "$s" = "powerline_precmd" ]; then
return
fi
done
precmd_functions+=(powerline_precmd)
}
if [ "$TERM" != "linux" ]; then
install_powerline_precmd
fi
With the -newline
flag, right modules no longer displays. Without -newline
, then right modules do display.
Same for me, -newline flag removes right modules at all
Newline on its own line is not really possible with the current implementation of right modules, sadly. This would require a major rework
Note that the workaround for this is to use the newline
and root
modules like:
powerline-go -colorize-hostname -eval -modules 'user,host,cwd,newline,root' -modules-right 'time' -shell zsh
Note that the workaround for this is to use the
newline
androot
modules like:powerline-go -colorize-hostname -eval -modules 'user,host,cwd,newline,root' -modules-right 'time' -shell zsh
does this work with bash?
@wjam Does that actually work for you? Your exact command for me does not actually include a newline - there's a visual space between the CWD segment and the root segment, but they're on the same line. I'm using ZSH as well.
Yes, mine works. My dotfiles repo contains my current configuration which has a ZSH theme that makes use of JSON config file for powerline-go.
For me, if I use the --eval
option, newline doesn't work at all... it just inserts a space where the newline should be.