Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Configuring

Chris Allen Lane edited this page Jan 9, 2017 · 1 revision

did utilizes rc for configuration-management, and thus may optionally be configured via a ~/.didrc file. Configuration is not necessary, but can be used to change did's default behaviors.

Note that ~/.didrc must contain only strict, valid JSON. This means that, among other constraints:

  • all property names must be double-quoted
  • comments are forbidden
  • trailing commas are forbidden

jq can be useful for diagnosing improperly formatted configs.

example-didrc is an example .didrc file that you may copy and modify.

Configuration Values

database

did uses sqlite3 as its underlying database. The database config value allows you to specify where did's database should reside on the filesystem. [Default: ~/.did.sqlite3]

color.id

The color to apply to entry ids when logged. May be any value accepted by chalk. [Default: cyan]

color.timestamp

The color to apply to entry timestamps when logged. May be any value accepted by chalk. [Default: green]

color.entry

The color to apply to entry text when logged. May be any value accepted by chalk. [Default: white]

color.match

The color to apply to entry text search matches when logged. May be any value accepted by chalk. [Default: yellow]

dateFormat

The date format to apply to log entry timestamps. May be any value accepted by datejs. [Default: dd MMM | hh:mm tt]

editor

The editor that should be used for writing and editing log entries interactively. [Default: EDITOR]

Clone this wiki locally