diff --git a/.config/fish/config_wsl.fish b/.config/fish/config_wsl.fish index e1af4e7..5dd64be 100644 --- a/.config/fish/config_wsl.fish +++ b/.config/fish/config_wsl.fish @@ -1,7 +1,10 @@ # NAS if timeout 0.2 ping -c1 192.168.1.200 > /dev/null - sudo mount -t drvfs 'Y:' /mnt/y -o metadata,uid=1000,gid=1000 2> /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 diff --git a/wsl.sh b/wsl.sh index 43ea4b8..6afa42b 100644 --- a/wsl.sh +++ b/wsl.sh @@ -73,6 +73,7 @@ function main { # === Shared folders == sudo mkdir -p /mnt/y + sudo mkdir -p /mnt/z # === Fish ==