nushell etc for nomom

This commit is contained in:
Tao Tien 2025-03-08 22:35:46 -08:00
parent 620fe90134
commit 77c3aa4fc1
11 changed files with 1400 additions and 2 deletions

View file

@ -31,11 +31,11 @@ alias jp = jj git push
alias js = jj status
alias jw = jj workspace update-stale
def jm [-r: string = "@"] {
def jm --wrapped [-r: string = "@", ...rest] {
mut r = $r
if (jj log -r @ --no-pager --no-graph --template 'if(empty,"empty")' | $in == "empty") {
$r = "@-"
}
jj bookmark set main -r $r
jj bookmark set main -r $r ...$rest
jj git push
}