Home

dotnix @main - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
tree log patch
nushell dev function Signed-off-by: jolheiser <git@jolheiser.com>
Signature
-----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgBTEvCQk6VqUAdN2RuH6bj1dNkY oOpbPWj+jw4ua1B1cAAAADZ2l0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5 AAAAQLuI47dE1JmZN5lPKniIcOCkLCF+IB0PcmDEipOKJqUpSAdVwQ+hbrvXAxUz77VsYR nMuyk5Sw4oljVUWEHrCgc= -----END SSH SIGNATURE-----
jolheiser <git@jolheiser.com>
3 weeks ago
1 changed files, 7 additions(+), 0 deletions(-)
M apps/nogui/nushell/jolheiser.nuapps/nogui/nushell/jolheiser.nu
diff --git a/apps/nogui/nushell/jolheiser.nu b/apps/nogui/nushell/jolheiser.nu
index f004a2e093bbf568e063bd070e352fffb5a7e12c..a76e7b1c3e24077f43ab601a88177d22e2aef955 100644
--- a/apps/nogui/nushell/jolheiser.nu
+++ b/apps/nogui/nushell/jolheiser.nu
@@ -37,6 +37,13 @@   }
   ^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