From 73f94ab78a619232ed11c199cc1f7cd1f0f78318 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Thu, 1 May 2025 16:02:34 -0500 Subject: [PATCH] nushell dev function Signed-off-by: jolheiser --- apps/nogui/nushell/jolheiser.nu | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/nogui/nushell/jolheiser.nu b/apps/nogui/nushell/jolheiser.nu index f004a2e..a76e7b1 100644 --- a/apps/nogui/nushell/jolheiser.nu +++ b/apps/nogui/nushell/jolheiser.nu @@ -37,6 +37,13 @@ def q [ ^llm -s "Answer in as few words as possible. Use a brief style with short replies." -m claude-3.5-sonnet $"($query)" } +def dev [ + --port (-p) = 8080: int # Port +] { + print $"Listening on http://localhost:($port)" + ^ssh -N -T -R $"3389:localhost:($port)" dragonwell +} + # Run a command if known, otherwise run it with nix def , [ cmd: string # The command to run