confOS/.config/fish/config_wsl.fish
2024-04-15 16:00:05 +02:00

13 lines
320 B
Fish

# NAS
if timeout 0.2 ping -c1 192.168.1.200 > /dev/null
for drive in 'Y' 'Z'
sudo mount -t drvfs $drive: /mnt/$drive \
-o metadata,uid=$(id -u),gid=$(id -g) 2> /dev/null &
end
end
# Sometimes the screen is getting lost
if not test -e /tmp/.X11-unix/X0
ln -sf /mnt/wslg/.X11-unix/X0 /tmp/.X11-unix/
end