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;