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 is configured entirely through environment variables, most of which live in the ~/.nbrc configuration file. Every variable can be set either by exporting it in your shell profile or by assigning it directly in ~/.nbrc, which you can open for editing with nb settings edit. This page is a complete reference for every supported variable, grouped by category.
Setting Variables
Variables are set in~/.nbrc using standard shell assignment with export:
nb set / nb settings.
Editor
The terminal editor command used for editing items throughout the system. Used by
nb unless overridden by $NB_EDITOR.Example values: code, emacs, hx, vimThe terminal editor command for editing items within
nb specifically. Overrides $EDITOR in the environment.Example values: code, emacs, hx, vimACE Editor (Browse)
These variables configure the ACE editor used innb browse for in-browser editing.
Enable the ACE editor in
nb browse. Set to 1 to enable.Supported values: 0, 1Show the Markdown gutter in the ACE editor. Set to
0 to hide.Supported values: 0, 1Enable relative line numbers in the ACE editor. Set to
1 to enable.Supported values: 0, 1Use soft tabs (spaces) instead of hard tabs in the ACE editor. Set to
1 to enable.Supported values: 0, 1The keyboard binding mode for the ACE editor.Example values:
emacs, sublime, vim, vscodeSync
When set to
1, each git checkpoint call automatically runs nb sync. Set to 0 to disable automatic syncing.Supported values: 0, 1The minimum number of seconds between automatic Git sync operations when
$NB_AUTO_SYNC is enabled.Supported values: 0 or any positive integerBookmarks
The tool used to clean up HTML content before converting it to Markdown when creating bookmarks.Supported tools: readability-cli, rdrviewSupported values:
'' (none), rdrview, readabilityThe tool used to convert HTML content to Markdown when creating bookmarks.Supported tools: html-to-markdown, markitdown, pandocSupported values:
'' (none), html-to-markdown, markitdown, pandocBrowse / Server
The Pandoc reader โ including any extensions โ used for converting Markdown to HTML in
nb browse. See the Pandoc extensions manual for details.The tool used to listen on the server host and port and respond to incoming HTTP requests.Supported values:
accept, bash, nc, ncat, netcat, socatSet to
0 to hide the โDonateโ and โSponsorโ links in nb browse.Supported values: 0, 1The terminal browser command used by
nb to open URLs.Example values: links, w3mThe GUI browser command used to open URLs when a graphical browser is preferred.Example value:
firefoxThe host address for the
nb browse server.The port number for the
nb browse server.Colors and Themes
The primary highlight color, specified as an xterm color number (typically 1โ256). To view a table of available colors and their numbers, run
nb settings colors.Supported values: 0โ255+The color for lines and other accents, specified as an xterm color number. Run
nb settings colors to view available options.Supported values: 0โ255+The color theme for
nb. Built-in and installed themes can be listed with nb settings colors.The syntax highlighting theme used when displaying code. Accepts any theme name listed by
bat --list-themes.Web / Custom
A CSS style sheet included inline within a
<style> element on pages rendered by nb browse.A URL to an external CSS style sheet included via
<link rel="stylesheet"> on pages rendered by nb browse.A block of JavaScript code included inline within a
<script> element on pages rendered by nb browse.A URL to an external JavaScript file included via
<script src="//url"> on pages rendered by nb browse.Data
The tool used for viewing data files such as CSV and TSV.Example values:
visidata, sc-imThe default file extension for new notes created without an explicit extension.Example values:
md, orgA string template or path to a template file used when creating new notes. Supports
{{title}} and {{content}} placeholders.Example values: /path/to/template/file, # {{title}} {{content}}The directory that contains all
nb notebooks. Change this to keep notebooks in a non-default location such as a cloud-synced folder.The tool used for browsing and navigating notebook directories. When unset,
nb browse is used.Example values: ranger, mcDisplay
When set to
1, folders are listed before other items in nb, nb ls, and nb browse.Supported values: 0, 1Controls display of the footer in
nb and nb ls. Set to 0 to hide.Supported values: 0, 1Controls display of the header in
nb and nb ls.Supported values: 0, 1, 2, 3The tool used to render images in the terminal.Example values:
imgcat, catimgThe maximum number of items displayed by
nb and nb ls. Set to auto to automatically limit output to the current terminal height.Supported values:| Format | Effect |
|---|---|
15 | Fixed maximum of 15 items |
auto | Fit terminal height |
auto^15 | Auto with maximum of 15 |
auto-2 | Auto minus 2 (for multiline prompts) |
auto+2 | Auto plus 2 |
auto-2^15 | Auto minus 2, capped at 15 |
auto+2^15 | Auto plus 2, capped at 15 |
The tool used to render Markdown content in the terminal. When unset, the default pager is used.Supported values:
bat, glow, lowdown, mdcat, mdless, mdvEncryption
The encryption tool used when encrypting and decrypting items with
nb add --encrypt and related commands.Supported values: gpg, opensslIndicators
Indicators are the emoji characters shown next to items in listings. Each can be replaced with any character or string.Indicator shown next to audio files.
Indicator shown next to bookmark files (
.bookmark.md).Indicator shown next to document files (PDF, DOCX, etc.).
Indicator shown next to ebook files (EPUB, etc.).
Indicator shown next to encrypted files.
Indicator shown next to folders.
Indicator shown next to image files.
Indicator shown next to pinned items.
Indicator shown next to open (undone) todo items (
.todo.md).Indicator shown next to completed (done) todo items.
Indicator shown next to video files.
Other
The tool used to play audio files.Example values:
mplayer, afplayEnable MathJax rendering in
nb browse. Set to 1 to enable.Supported values: 0, 1A pattern that, when matched in a filename or content, causes the item to be treated as pinned.Example value:
#pinnedThe user agent string sent with HTTP requests made by
nb (e.g., when fetching bookmark content). Defaults to the curl or wget default user agent.The path to the
nb configuration file. Change this to use a non-default location for your .nbrc.