From cb3578bb0df9369a9f8684d48d65128887b9a1f8 Mon Sep 17 00:00:00 2001 From: imxyy_soope_ Date: Fri, 9 Jan 2026 14:07:12 +0800 Subject: [PATCH] feat(jj): add jj tug --- modules/cli/vcs/jj.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/cli/vcs/jj.nix b/modules/cli/vcs/jj.nix index 9680924..0a93aa5 100644 --- a/modules/cli/vcs/jj.nix +++ b/modules/cli/vcs/jj.nix @@ -21,6 +21,16 @@ in programs.jujutsu = { enable = true; settings = { + # take the closest ancestor bookmark and move them the current change. + # https://shaddy.dev/notes/jj-tug + aliases.tug = [ + "bookmark" + "move" + "--from" + "heads(::@- & bookmarks())" + "--to" + "@-" + ]; user = { name = userfullname; email = emails.default;