Fresh

Configuration

Configure Fresh for your needs

Fresh stores configuration in your home directory under ~/.fresh/.

Configuration Files

Fresh uses the following configuration files and directories:

File/DirectoryPurpose
~/.fresh/aliases.jsonSaved aliases for documentation URLs
~/.fresh/cache/Cached documentation pages
~/.fresh/docs/Synced documentation for offline use
~/.fresh/history.dbSearch history database

Aliases

Aliases are stored in ~/.fresh/aliases.json:

{
  "python": "https://docs.python.org/3/",
  "react": "https://react.dev/",
  "rust": "https://doc.rust-lang.org/stable/"
}

You can manage aliases using the fresh alias command.

Environment Variables

Fresh respects these environment variables:

VariableDescription
BRAVE_API_KEYAPI key for Brave Search (for websearch)
FRESH_CACHE_DIROverride cache directory location
FRESH_DOCS_DIROverride synced docs directory

Cache Management

Clear Cache

# Clear all cached pages
fresh sync --force

# Or manually delete cache
rm -rf ~/.fresh/cache/

Cache TTL

Cached pages are automatically refreshed based on the source's caching headers. Use --force to bypass cache.

Next Steps

On this page