This commit is contained in:
Tao Tien 2026-02-11 00:09:56 -08:00
parent 6eeee7ac88
commit ad083cc62c
9 changed files with 26 additions and 27 deletions

View file

@ -15,10 +15,13 @@ alias cringe = sudo bootctl set-oneshot auto-windows
def h [query?: path] {
(if ($query != null) {sk -1 -q ($query | path basename)} else {sk -1})
| complete
| if $in.exit_code == 0 {
$in.stdout | str trim | hx $in
}
| if ($in != "") {
hx $in
}
# | complete
# | if $in.exit_code == 0 {
# $in.stdout | str trim | hx $in
# }
}
def srg [] {
@ -36,6 +39,7 @@ alias jp = jj git push
alias js = jj status
alias jw = jj workspace update-stale
alias jt = jj log -r @ -T `description`
alias jn = jj next --edit
def jm --wrapped [-r: string = "@", ...rest] {
mut r = $r

View file

@ -67,9 +67,9 @@ def bump [...rest] {
}
let r = jj log -r @ --no-pager --no-graph --template 'change_id'
sudo nix flake update
let curr_gen = get_gen()
let curr_gen = get_gen
let build_status = rebuild boot
let new_gen = get_gen()
let new_gen = get_gen
if ($build_status and ($curr_gen == $new_gen)) {
jj desc -r $r -m $"bump (date now | format date "%Y-%m-%d")"
jj bookmark set main -r $r