home: fish: add WoL alias

This commit is contained in:
Antoine Martin 2021-08-21 18:35:55 +02:00
parent 97d4ccf533
commit d8de5c1701

View file

@ -0,0 +1,14 @@
function wake -d "Wake-on-WiFi shortcut" -a host
if not set -q host[1]
echo "Usage: wake HOSTNAME"
return 1
end
switch $host
case boreal
ssh -t pi@pi.alarsyo.net "bash -ic wakywaky"
case *
echo "Unknown host!"
return 1
end
end