confOS/.config/fish/config_wsl.fish

14 lines
320 B
Fish
Raw Normal View History

2023-11-06 00:27:31 +01:00
2022-03-30 19:29:58 +02:00
# NAS
2023-12-25 01:23:11 +01:00
if timeout 0.2 ping -c1 192.168.1.200 > /dev/null
2024-04-15 16:00:05 +02:00
for drive in 'Y' 'Z'
sudo mount -t drvfs $drive: /mnt/$drive \
-o metadata,uid=$(id -u),gid=$(id -g) 2> /dev/null &
end
2023-12-23 18:21:31 +01:00
end
2023-12-25 01:23:11 +01:00
2023-12-27 20:31:24 +01:00
# Sometimes the screen is getting lost
if not test -e /tmp/.X11-unix/X0
2023-12-25 01:23:11 +01:00
ln -sf /mnt/wslg/.X11-unix/X0 /tmp/.X11-unix/
end