Language Reference › pseudo.configv0.1
Language Reference

pseudo.config

Configure which .pmap to use for a project directory.

What is pseudo.config?

A pseudo.config file in your current working directory tells Pseudo which .pmap file to use automatically - without needing to pass --lang every time.

Format

JSON format with a single pmap key:

pseudo.config
{
    "pmap": "custom.pmap"
}

Path Resolution

The pmap value is resolved in this order:

  1. Absolute path - used as-is
  2. Relative path - resolved from current working directory
  3. ~/.pseudo/custom/ - looked up by name
pseudo.config - absolute path
{
    "pmap": "/home/user/.pseudo/custom/my_lang.pmap"
}

Creating via pseudo init

bash
pseudo init

This creates pseudo.config in the current directory and links it to the pmap file you specify.

Config Resolution Priority

PrioritySource
1st--lang flag (explicit override)
2ndpseudo.config in current directory
3rd.pseudorc in current directory
4th~/.pseudo/custom/custom.pmap (if exists)
5th~/.pseudo/core/default.pmap (always available)
💡
TipUse pseudo.config at the root of a project to lock in a specific language style for all .pseudo files in that directory - no flags needed.

Alternative: .pseudorc

Pseudo also reads .pseudorc as an alternative to pseudo.config. Both formats are accepted - the first one found is used.