From 34130fbec5be82ca45a7319e0840e5514bd35658 Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Thu, 30 Apr 2026 15:15:20 -0700 Subject: [PATCH] ts --- users/tao/nushell/extras/tailscale.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/tao/nushell/extras/tailscale.nu b/users/tao/nushell/extras/tailscale.nu index fa8e8d9..83eb48a 100644 --- a/users/tao/nushell/extras/tailscale.nu +++ b/users/tao/nushell/extras/tailscale.nu @@ -13,7 +13,7 @@ export def check-mullvad [] { } # switch to a specific exit node, or none -export def te [exit_node: string = ""] { +export def te [exit_node: string = "", -n] { if ($exit_node | is-empty) and (ps | find deluge | is-not-empty) { print "stop summoning first!" return false @@ -21,7 +21,7 @@ export def te [exit_node: string = ""] { tailscale set --exit-node $exit_node - if ($exit_node | is-not-empty) { + if ($exit_node | is-not-empty) or not $n { check-mullvad } else { print "exit node set"