Skip to content

Instantly share code, notes, and snippets.

@williamokano
Forked from ThYpHo0n/.zshrc
Created September 10, 2020 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save williamokano/2b68601152ec7437f116d5d41b958edc to your computer and use it in GitHub Desktop.
Save williamokano/2b68601152ec7437f116d5d41b958edc to your computer and use it in GitHub Desktop.
WSL(2) bash profile helpers
# 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