This commit is contained in:
Steven Hobs
2025-11-29 11:32:33 +08:00
commit aeb21c5a8b
8 changed files with 1978 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