Configuration
Config file location
Section titled “Config file location”Configuration is stored in NUON (Nushell Object Notation) format at:
$XDG_CONFIG_HOME/stars/config.nuTypically: ~/.config/stars/config.nu
Default configuration
Section titled “Default configuration”{ version: "3.0.0" storage: { db_path: null backup_on_sync: false } defaults: { filters: { exclude_languages: [PHP, "C#", Java, Python, Ruby] exclude_archived: true exclude_forks: false min_pushed_days: 365 } columns: [owner, name, language, stars, pushed, homepage, topics, description, forks, issues] sort_by: "stars" sort_reverse: true } output: { default_format: "table" table: { max_description_length: 80 clickable_links: true colorize_languages: true } } sync: { sources: [github] github: { per_page: 100 cache_duration: "1h" full_sync_interval_days: 7 } }}Dot-notation access
Section titled “Dot-notation access”All config commands support dot notation for nested keys:
# Read nested valuesstars config get defaults.sort_bystars config get defaults.filters.exclude_languagesstars config get sync.github.cache_duration
# Write nested valuesstars config set defaults.sort_by "pushed"stars config set sync.github.full_sync_interval_days 14Common customizations
Section titled “Common customizations”Change sort order
Section titled “Change sort order”stars config set defaults.sort_by "pushed"stars config set defaults.sort_reverse trueValid sort fields: stars, forks, pushed, created, updated, name, language, owner.
Modify excluded languages
Section titled “Modify excluded languages”# See current exclusionsstars config get defaults.filters.exclude_languages
# Set a new liststars config set defaults.filters.exclude_languages [PHP, "C#"]Show archived repos by default
Section titled “Show archived repos by default”stars config set defaults.filters.exclude_archived falseEnable backup on sync
Section titled “Enable backup on sync”stars config set storage.backup_on_sync trueChange sync frequency
Section titled “Change sync frequency”# Full sync every 14 days instead of 7stars config set sync.github.full_sync_interval_days 14Customize displayed columns
Section titled “Customize displayed columns”stars config set defaults.columns [owner, name, language, stars, description]Validation
Section titled “Validation”After editing config manually, validate it:
stars config validateThis checks for missing required sections and fields, reporting errors and warnings.
Resetting
Section titled “Resetting”# Reset everything to defaultsstars config reset
# Reset only a specific sectionstars config reset --key defaults.filters