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