home: fish: add WoL alias
This commit is contained in:
parent
97d4ccf533
commit
d8de5c1701
1 changed files with 14 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue