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

Not working under WSL with Fish #313

Open
fabssor opened this issue May 1, 2021 · 1 comment
Open

Not working under WSL with Fish #313

fabssor opened this issue May 1, 2021 · 1 comment
Labels

Comments

@fabssor
Copy link

fabssor commented May 1, 2021

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!

@fabssor fabssor added the bug label May 1, 2021
@mrevjd
Copy link

mrevjd commented Aug 22, 2023

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

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

No branches or pull requests

2 participants