Compare commits

...

2 Commits

Author SHA1 Message Date
jolheiser 73f94ab78a
nushell dev function
Signed-off-by: jolheiser <git@jolheiser.com>
2025-05-01 16:02:34 -05:00
jolheiser 6ea5ae4b4e
more jj aliases
Signed-off-by: jolheiser <git@jolheiser.com>
2025-05-01 13:33:53 -05:00
2 changed files with 24 additions and 0 deletions

View File

@ -25,6 +25,10 @@
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAUxLwkJOlalAHTdkbh+m49XTZGKDqWz1o/o8OLmtQdX";
};
revsets.log = "ancestors(present(@), 5) | ancestors(immutable_heads().., 2) | present(trunk())";
revset-aliases = {
"closest_bookmark(to)" = "heads(::to & bookmarks())";
"immutable_heads()" = "builtin_immutable_heads() & remote_bookmarks()";
};
aliases = {
push = [
"util"
@ -41,6 +45,19 @@
"fetch"
"origin"
];
i = [
"git"
"init"
"--colocate"
];
tug = [
"bookmark"
"move"
"--from"
"closest_bookmark(@-)"
"--to"
"@-"
];
};
};
};

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