dir-init uses a YAML configuration file at ~/.dir-init/config.yaml to store your custom frontends, backends, tech stacks, frameworks, and category words.
# Create config file with default values
dir-init config init# Show config file path
dir-init config path
# Show all loaded collections
dir-init config show
# Validate config syntax
dir-init config validate# Open config in your default editor ($EDITOR or vim)
dir-init config edit# Add a tech stack
dir-init config add techstack <code> <description>
# Example: dir-init config add techstack fejs "Frontend JS"
# Add a framework
dir-init config add framework <techstack> <code> <description>
# Example: dir-init config add framework fejs react "React Framework"
# Add a word to a category
dir-init config add word <category> <word>
# Example: dir-init config add word food taco# Remove a tech stack
dir-init config remove techstack <code>
# Example: dir-init config remove techstack fejs
# Remove a framework
dir-init config remove framework <techstack> <code>
# Example: dir-init config remove framework fejs react
# Remove a word from a category
dir-init config remove word <category> <word>
# Example: dir-init config remove word food tacoThe config file structure:
# dir-init Custom Collections
frontends:
- code: rct
description: React
- code: vue
description: Vue.js
# ... more frontends
backends:
- code: node
description: Node.js
- code: py
description: Python
# ... more backends
categories:
food:
- pizza
- burger
- taco
# ... more words
animals:
- penguin
- koala
# ... more words
# ... more categoriesManage custom word collections and configuration.
Subcommands:
config init: Initialize config file with default valuesconfig path: Show config file pathconfig show: Display all loaded collectionsconfig validate: Validate config file syntaxconfig edit: Open config in default editor
Add Subcommands:
config add techstack <code> <description>: Add a tech stackconfig add framework <techstack> <code> <description>: Add a frameworkconfig add word <category> <word>: Add a word to a category
Remove Subcommands:
config remove techstack <code>: Remove a tech stackconfig remove framework <techstack> <code>: Remove a frameworkconfig remove word <category> <word>: Remove a word from a category