dotfiles

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

config.toml (1008B)


      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 [template-aliases]
     12 # 1. Define the content format
     13 fmt_lol_content = '''
     14 change_id.shortest(8) ++ " " ++
     15 commit_id.shortest(8) ++ " " ++
     16 label("timestamp", committer.timestamp().local().format("%Y-%m-%d %H:%M:%S")) ++ " " ++
     17 label("author", author.name()) ++ "  " ++
     18 separate(" ",
     19   bookmarks,
     20   tags,
     21   if(git_head, label("git_head", "git_head()")),
     22   if(empty, label("empty", "(empty)")),
     23   if(description, 
     24     description.first_line(), 
     25     label("description placeholder", "(no description set)")
     26   )
     27 )
     28 '''
     29 # 2. Wrap the content in the "working_copy" label if applicable
     30 fmt_lol = 'if(current_working_copy, label("working_copy", fmt_lol_content), fmt_lol_content)'
     31 
     32 [colors]
     33 "committer timestamp" = "cyan"
     34 "working_copy committer timestamp" = "bright cyan"