Add JJ config to dotfiles.

This commit is contained in:
2026-03-16 22:02:44 -07:00
parent 08f4f3d114
commit e3519494f9
2 changed files with 19 additions and 0 deletions

17
jj/.config/jj/config.toml Normal file
View File

@@ -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"

View File

@@ -0,0 +1,2 @@
/home/chun/dotfiles/.jj/repo