stars config
The config commands manage your stars.nu settings, stored in NUON format at $XDG_CONFIG_HOME/stars/config.nu.
stars config
Section titled “stars config”Shows the current configuration as a Nushell record.
stars configstars config --jsonCreates a configuration file with default values.
stars config initstars config init --force # overwrite existing| Flag | Description |
|---|---|
--force | Overwrite existing configuration file |
Alias for stars config. Shows the current configuration.
stars config showstars config show --jsonRetrieves a specific value using dot notation for nested keys.
stars config get version# => "3.0.0"
stars config get defaults.columns# => [owner, name, language, stars, pushed, homepage, topics, description, forks, issues]
stars config get defaults.filters.exclude_languages# => [PHP, C#, Java, Python, Ruby]
stars config get sync.github.per_page# => 100
stars config get output.table.clickable_links# => trueSets a value using dot notation. Creates intermediate keys if they don’t exist.
stars config set defaults.sort_by "pushed"
stars config set output.table.max_description_length 120
stars config set defaults.filters.exclude_archived false
stars config set sync.github.full_sync_interval_days 14Resets configuration to defaults. Optionally reset only a specific key.
# Reset everythingstars config reset
# Reset only the filters sectionstars config reset --key defaults.filters| Flag | Type | Description |
|---|---|---|
--key | string | Specific key to reset (dot notation). Resets all if omitted. |
Opens the configuration file in your editor ($EDITOR or $VISUAL, defaults to nvim). Creates a default config first if none exists.
stars config editReturns the path to the configuration file.
stars config path# => /home/user/.config/stars/config.nuvalidate
Section titled “validate”Checks the configuration for structural issues and reports errors/warnings.
stars config validateReturns a record:
╭──────────┬──────────────────────╮│ valid │ true ││ errors │ [] ││ warnings │ [] │╰──────────┴──────────────────────╯Checks for: version field, storage section, defaults section (with columns and filters), output section, and sync section.