From d8de5c17013df3ed7621636db24cea926cb072fc Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 21 Aug 2021 18:35:55 +0200 Subject: [PATCH] home: fish: add WoL alias --- home/fish/functions/wake.fish | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 home/fish/functions/wake.fish diff --git a/home/fish/functions/wake.fish b/home/fish/functions/wake.fish new file mode 100644 index 0000000..5c255db --- /dev/null +++ b/home/fish/functions/wake.fish @@ -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