config

Manage configuration.

Alias: cfg

Synopsis

unimorph config <COMMAND>

Subcommands

CommandDescription
showShow current configuration
initInitialize a new config file
pathShow the config file path

config show

Display the current configuration, including both config file settings and defaults.

unimorph config show
Configuration

  Path: /home/user/.config/unimorph/config.toml
  Status: loaded

Current Settings

  default_lang: heb
  data_dir: (default)
  output_format: (default: table)
  no_color: (not set)

JSON Output

unimorph config show --json
{
  "path": "/home/user/.config/unimorph/config.toml",
  "exists": true,
  "default_lang": "heb",
  "data_dir": null,
  "output_format": null,
  "no_color": null
}

config init

Create a new config file with example content.

unimorph config init
Created config file at /home/user/.config/unimorph/config.toml

Force Overwrite

unimorph config init --force

Overwrites existing config file.

JSON Output

unimorph config init --json
{
  "path": "/home/user/.config/unimorph/config.toml",
  "created": true
}

config path

Show the config file path.

unimorph config path
/home/user/.config/unimorph/config.toml

JSON Output

unimorph config path --json
{
  "path": "/home/user/.config/unimorph/config.toml"
}

Config File Format

The config file uses TOML format:

# Default language for commands
default_lang = "heb"

# Custom data directory
# data_dir = "/custom/path"

# Default output format: "table", "json", or "tsv"
# output_format = "table"

# Disable colored output
# no_color = true

# Language aliases
[languages]
hebrew = "heb"
spanish = "spa"

See Also