Skip to content

Instantly share code, notes, and snippets.

@alexandreramosdev
Forked from ThYpHo0n/.zshrc
Created June 4, 2020 21:29
Show Gist options
  • Save alexandreramosdev/2c30ad49f8d65452942736c7346ef8c2 to your computer and use it in GitHub Desktop.
Save alexandreramosdev/2c30ad49f8d65452942736c7346ef8c2 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