nushell dev function

Signed-off-by: jolheiser <git@jolheiser.com>
main
jolheiser 2025-05-01 16:02:34 -05:00
parent 6ea5ae4b4e
commit 73f94ab78a
No known key found for this signature in database
1 changed files with 7 additions and 0 deletions

View File

@ -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