Documentation Index
Fetch the complete documentation index at: https://mintlify.com/xwmx/nb/llms.txt
Use this file to discover all available pages before exploring further.
nb stores all configuration in a single file โ ~/.nbrc โ as plain Bash export statements. Every setting ships with a sensible default, so the file starts empty and you only add what you want to change. You can edit it directly in your $EDITOR, or let nb set manage it for you through an interactive prompt or one-line commands.
The ~/.nbrc File
All settings are stored as environment variable assignments in ~/.nbrc. When nb starts, it sources this file so every exported variable is available at runtime. You can open the file directly with:
~/.nbrc in your configured $EDITOR. You can also set variables manually by adding lines like:
nb set and nb settings
nb set and nb settings are aliases for the same subcommand. Use whichever feels natural โ they behave identically.
Running either command with no arguments opens the interactive settings prompt, where you can browse every available setting, see its current value, and enter a new one:
Setting Values
Skip the interactive prompt by passing both the name (or number) and value together:Getting, Listing, and Unsetting
nb settings show <name> prints the full help text and current value for a single setting, which is useful for checking what values are supported.
Key Settings Reference
The table below covers the most frequently configured settings. EveryNB_* variable shown here can also be set by running nb set <lowercase_name> <value> (e.g., nb set nb_dir ~/notes).
| Variable | Default | Description |
|---|---|---|
$NB_DIR | ~/.nb | Directory that contains all notebooks |
$NB_EDITOR / $EDITOR | system default | CLI text editor used by nb edit |
$NB_DEFAULT_EXTENSION | md | File extension for new notes (md, org, etc.) |
$NB_LIMIT | 15 | Max items shown by nb / nb ls; supports auto |
$NB_AUTO_SYNC | 1 | Auto-run nb sync on every git checkpoint (0 to disable) |
$NB_AUTO_SYNC_SECONDS | 60 | Minimum seconds between automatic sync operations |
$NB_COLOR_THEME | nb | Active color theme name |
$NB_ENCRYPTION_TOOL | openssl | Encryption backend โ openssl or gpg |
$NB_SERVER_HOST | localhost | Hostname for nb browse server |
$NB_SERVER_PORT | 6789 | Port for nb browse server |
NB_LIMIT auto mode
NB_LIMIT accepts several special values beyond a plain number:
NB_AUTO_SYNC
When NB_AUTO_SYNC is 1 (the default), nb will automatically run nb sync whenever it reaches a git checkpoint. Set it to 0 to manage syncing manually:
nb set and nb settings are aliases โ they refer to the same subcommand and can be used interchangeably throughout your workflow.Complete Variable Reference
For the full list of everyNB_* environment variable with descriptions and supported values, see the Variables reference.