dotfiles

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

config.toml (1101B)


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