[go: up one dir, main page]

Skip to content

Latest commit

Β 

History

History
49 lines (36 loc) Β· 954 Bytes

Theme.md

File metadata and controls

49 lines (36 loc) Β· 954 Bytes

create custom theme

example: default theme

apply your theme

through command line flag

g -theme=path/to/theme [other options] path

set in the config file

add Theme: $location to your profile. $location can be found by g --help like this:

> g --help
# ...
CONFIG:
  Configuration: /Users/equationzhao/Library/Application Support/g/g.yaml
  See More at: g.equationzhao.space
# ...

here is an example of setting custom theme in the config file:

Args:
  - hyperlink=never
  - icons
  - disable-index

CustomTreeStyle:
  Child: "β”œβ”€β”€ "
  LastChild: "╰── "
  Mid: "β”‚   "
  Empty: "    "
  
Theme: /Users/equationzhao/g/internal/theme/your_custom_theme.json

advanced

build with custom theme

the custom theme must be placed in the theme directory and named custom_builtin.json (theme/custom_builtin.json)

go build -tags=custom .