justjanne/powerline-go

Not working under WSL with Fish

fabssor opened this issue · 1 comments

Describe the bug
With Fish shell under WSL 2 powerline-go does not show anything.
With Bash it works as expected.
Tried two different fish_prompt function definitions both do not work.

To Reproduce

  1. Following install instruction.
go get -u github.com/justjanne/powerline-go
  1. Setup .config/fish/config.fish:
    First Version (done as in duration example in Readme) :
function fish_prompt
    $GOPATH/bin/powerline-go -newline -error $status
end

Second Version (as described in the installation part of the Readme):

function fish_prompt
    eval $GOPATH/bin/powerline-go -error $status -jobs (jobs -p | wc -l)
end

Also omitting GOPATH and pasting in the absolute path to powerline-go does not work.

Both do not work and only the following is shown:
image

As already mentioned it works perfectly with Bash.

Environment:

  • OS: WSL 2 with Ubuntu 20.04/ Windows 10
  • Architecture: intel/ amd64
  • Shell: fish version 3.1.0
  • go version: go1.13.8 linux/amd64

Is there anything I am doing wrong or does it not work?

Thanks!

Hi @fabssor ,

I have this running under Fish on AlmaLinux 9 in WSL 2.

This is at the very end of ~/.config/fish/config.fish

function fish_prompt
    eval /usr/local/bin/powerline-go -modules aws,dotenv,shenv,direnv,venv,goenv,user,host,cwd,direnv,git,root -colorize-hostname -error $status -jobs (count (jobs -p))
end