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

gof does not work in WSL #60

Open
hrai opened this issue Mar 27, 2023 · 2 comments
Open

gof does not work in WSL #60

hrai opened this issue Mar 27, 2023 · 2 comments

Comments

@hrai
Copy link

hrai commented Mar 27, 2023

gof does not open anything in WSL but got opens a terminal.

This is on windows 10 host and Ubuntu 22.x WSL

@Konfekt
Copy link
Contributor

Konfekt commented Mar 29, 2024

Did you try

if executable('pwsh.exe') " Win32 or WSL
  let s:pwsh = 'pwsh.exe -NoExit -NoLogo -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;'
  let g:gtfo#terminals = { 'win': s:pwsh, 'unix': s:pwsh }
  unlet s:pwsh
endif

?

@Konfekt
Copy link
Contributor

Konfekt commented Mar 29, 2024

Maybe in

elseif s:termpath =~? 'pwsh' && executable('pwsh')

gtfo is too smart to make pwsh work, since only pwsh.exe is executable, not pwsh

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

No branches or pull requests

2 participants