# Customization ## Startup By default, Numbat will load the following files during startup: - Numbat Prelude (a module called `prelude`, from `/prelude.nbt`) - The user initialization file, if available (a file called `init.nbt` from `/init.nbt`) ### Config path Numbat's configuration folder (`` above) can be found under: |Platform|Path| |---|---| |Linux|`$HOME/.config/numbat` or `$XDG_CONFIG_HOME/numbat`| |macOS|`$HOME/Library/Application Support/numbat`| |Windows|`C:\Users\Alice\AppData\Roaming\numbat`| ## Module paths Numbat will load modules from the following directories (`` above). Entries higher up in the list take precedence. * `/modules` — User-customized module folder * `/usr/share/numbat/modules` — on Linux and macOS * `C:\Program Files\numbat\modules` — on Windows ## Customization ### Custom functions, constants, units If you want to add custom functions, constants, or units to your default environment, create a `init.nbt` file in your config folder (e.g. `~/.config/numbat/init.nbt` on Linux). ### Custom modules You can also create your own modules that can be loaded on demand. To this end, create a new file, say `/finance.nbt` in one of the module folders (e.g. `~/.config/numbat/modules/finance.nbt` on Linux). This module can then be loaded using ``` numbat use finance ``` in your Numbat scripts or in the REPL. You can also load custom modules from `init.nbt` if you want to have them available all the time. You can also organize modules into subfolders (e.g. `/finance/functions.nbt`). In that case, you can load them using ``` numbat use finance::functions ```