-
-
Save williamokano/b961ee04dd001830e844614c3cd9ce34 to your computer and use it in GitHub Desktop.
WSL(2) bash profile helpers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Windows XSrv config | |
export $(dbus-launch) | |
export LIBGL_ALWAYS_INDIRECT=1 | |
export WSL_VERSION=$(wsl.exe -l -v | grep -a '[*]' | sed 's/[^0-9]*//g') | |
export WSL_HOST=$(tail -1 /etc/resolv.conf | cut -d' ' -f2) | |
export DISPLAY=$WSL_HOST:0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment