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 .