Skip to content

Instantly share code, notes, and snippets.

@carlosdelfino
Created March 19, 2020 15:13
Show Gist options
  • Save carlosdelfino/b5f5030c036f80ff042e6895bf74284a to your computer and use it in GitHub Desktop.
Save carlosdelfino/b5f5030c036f80ff042e6895bf74284a to your computer and use it in GitHub Desktop.
[WSL .bashrc snippets] #wsl #snippets
# 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