init
This commit is contained in:
12
wsl2.zsh
Normal file
12
wsl2.zsh
Normal 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="$(/bin/ip r | head -n1 | cut -d' ' -f3)"
|
||||
|
||||
# WSLG
|
||||
if [[ -z $DISPLAY ]]; then
|
||||
export DISPLAY="$NET_GATE:0.0"
|
||||
fi
|
||||
export LIBGL_ALWAYS_INDIRECT=true
|
||||
export LIBGL_ALWAYS_SOFTWARE=true
|
Reference in New Issue
Block a user