home: fish: add WoL alias
This commit is contained in:
parent
97d4ccf533
commit
d8de5c1701
14
home/fish/functions/wake.fish
Normal file
14
home/fish/functions/wake.fish
Normal 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
|
Loading…
Reference in a new issue