dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

config.toml (1038B)


      1 #:schema https://jj-vcs.github.io/jj/latest/config-schema.json
      2 
      3 [user]
      4 name = "Chris Bracken"
      5 email = "chris@bracken.jp"
      6 
      7 [aliases]
      8 l = ["log", "-T", "fmt_lol", "-r", "ancestors(trunk() | mutable(), 3)"]
      9 ll = ["log", "-T", "fmt_lol", "-r", "::"]
     10 
     11 [ui]
     12 diff-formatter = ":git"
     13 
     14 [template-aliases]
     15 # 1. Define the content format
     16 fmt_lol_content = '''
     17 change_id.shortest(8) ++ " " ++
     18 commit_id.shortest(8) ++ " " ++
     19 label("timestamp", committer.timestamp().local().format("%Y-%m-%d %H:%M:%S")) ++ " " ++
     20 label("author", author.name()) ++ "  " ++
     21 separate(" ",
     22   bookmarks,
     23   tags,
     24   if(git_head, label("git_head", "git_head()")),
     25   if(empty, label("empty", "(empty)")),
     26   if(description, 
     27     description.first_line(), 
     28     label("description placeholder", "(no description set)")
     29   )
     30 )
     31 '''
     32 # 2. Wrap the content in the "working_copy" label if applicable
     33 fmt_lol = 'if(current_working_copy, label("working_copy", fmt_lol_content), fmt_lol_content)'
     34 
     35 [colors]
     36 "committer timestamp" = "cyan"
     37 "working_copy committer timestamp" = "bright cyan"