Skip to content

Instantly share code, notes, and snippets.

View 4-FLOSS-Free-Libre-Open-Source-Software's full-sized avatar
:octocat:
I may be slow to respond.

Bernd Eichelberger 4-FLOSS-Free-Libre-Open-Source-Software

:octocat:
I may be slow to respond.
  • without gainful employment
  • localhost
View GitHub Profile
@ThYpHo0n
ThYpHo0n / .zshrc
Last active April 11, 2024 19:00
WSL(2) bash profile helpers
# WSL?
if [[ "$(< /proc/sys/kernel/osrelease)" == *microsoft* ]]; then
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
# pip path if using --user
export PATH=$PATH:$HOME/.local/bin
# SSH