From e39e73190778f5c0ce58b898cec99ec799ec4854 Mon Sep 17 00:00:00 2001 From: Alper Cugun Date: Thu, 21 Mar 2024 12:41:20 +0100 Subject: [PATCH] docs(bun): Add nodejs override to bun config documentation (#5834) --- docs/config/README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/config/README.md b/docs/config/README.md index e7c231fc..47f45676 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -645,7 +645,9 @@ By default the module will be shown if any of the following conditions are met: *: This variable can only be used as a part of a style string -### Example +### Examples + +#### Customize the format ```toml # ~/.config/starship.toml @@ -654,6 +656,15 @@ By default the module will be shown if any of the following conditions are met: format = 'via [🍔 $version](bold green) ' ``` +#### Replace Node.js + +You can override the `detect_files` property of [the nodejs module](#nodejs) in your config so as to only show the bun runtime: + +``` +[nodejs] +detect_files = ['package.json', '.node-version', '!bunfig.toml', '!bun.lockb'] +``` + ## C The `c` module shows some information about your C compiler. By default