This commit is contained in:
Steven Hobs
2026-03-04 11:27:19 +08:00
commit 2c0a1fdcb9
8 changed files with 1956 additions and 0 deletions

12
wsl2.zsh Normal file
View File

@@ -0,0 +1,12 @@
# This zsh is for the wsl distro
alias open="/mnt/c/Windows/explorer.exe"
alias notepad="/mnt/c/Windows/notepad.exe"
export NET_GATE="$(ip -c=never r | head -n1 | cut -d' ' -f3)"
# WSLG
if [[ -z $DISPLAY ]]; then
export DISPLAY="$NET_GATE:0.0"
export LIBGL_ALWAYS_INDIRECT=true
export LIBGL_ALWAYS_SOFTWARE=true
fi