diff --git a/home/baseline/nushell/functions.nu b/home/baseline/nushell/functions.nu index 7cbb42a..74ca665 100644 --- a/home/baseline/nushell/functions.nu +++ b/home/baseline/nushell/functions.nu @@ -12,6 +12,10 @@ def --env unlock [] { } } +def nebulaIps [] { + open ../../network.json | get hosts | items { |h, e| $e.nebulaIp? } | filter { |e| $e != null } | sort +} + def rebuild [ $target: string = "switch" ] { if (uname | get operating-system) == "Darwin" { sudo darwin-rebuild $target