From e3519494f97b911edec7dacfdc86fc5f11ee4411 Mon Sep 17 00:00:00 2001 From: Chun Li Date: Mon, 16 Mar 2026 22:02:44 -0700 Subject: [PATCH] Add JJ config to dotfiles. --- jj/.config/jj/config.toml | 17 +++++++++++++++++ .../repos/4a1e9c69ec37511440a3/metadata.binpb | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 jj/.config/jj/config.toml create mode 100644 jj/.config/jj/repos/4a1e9c69ec37511440a3/metadata.binpb diff --git a/jj/.config/jj/config.toml b/jj/.config/jj/config.toml new file mode 100644 index 0000000..9041e65 --- /dev/null +++ b/jj/.config/jj/config.toml @@ -0,0 +1,17 @@ +#:schema https://jj-vcs.github.io/jj/latest/config-schema.json + +[user] +name = "Chun Li" +email = "chunli.developer@gmail.com" + +[aliases] +# tug - move the nearest bookmark to the nearest non-empty change at or before @ +tug = ["bookmark", "move", "--from", "closest_bookmark(@)", "--to", "closest_nonempty(@)"] +init = ["git", "init"] + +[revset-aliases] +'closest_bookmark(to)' = 'heads(::to & bookmarks())' +'closest_nonempty(to)' = 'heads(::to ~ empty())' + +[ui] +default-command = "log" diff --git a/jj/.config/jj/repos/4a1e9c69ec37511440a3/metadata.binpb b/jj/.config/jj/repos/4a1e9c69ec37511440a3/metadata.binpb new file mode 100644 index 0000000..6c8b2b6 --- /dev/null +++ b/jj/.config/jj/repos/4a1e9c69ec37511440a3/metadata.binpb @@ -0,0 +1,2 @@ + +/home/chun/dotfiles/.jj/repo \ No newline at end of file