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

A better way to determine if omp is running from WSL. #5893

Closed
1 task done
dingdang66686 opened this issue Nov 15, 2024 · 1 comment
Closed
1 task done

A better way to determine if omp is running from WSL. #5893

dingdang66686 opened this issue Nov 15, 2024 · 1 comment
Assignees
Labels
🚀 feat New feature

Comments

@dingdang66686
Copy link

Code of Conduct

  • I agree to follow this project's Code of Conduct

What would you like to see added?

I tried to use omp installed in windows from WSL. By using some bash hack this can be done.

WSLENV=$WSLENV:POSH_THEME
eval "`oh-my-posh.exe init bash --config '~/Local/jtracey93.omp.json'|sed '/^_omp_executable/c\_omp_executable=oh-my-posh.exe'`"

However, omp still thinks this is a windows shell, so the OS icon and path indicator are not working properly.
image

Can we use another method to determine if we are running in WSL?

@JanDeDobbeleer
Copy link
Owner

@dingdang66686 don't use the windows executable in WSL. It's a Windows exe after all and you're in a Linux filesystem. The Linux executable can correctly identify WSL, as it understands the filesystem.

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

No branches or pull requests

2 participants