Skip to content

Commit

Permalink
feat: Remove welcome message (nushell#799)
Browse files Browse the repository at this point in the history
* feat: Remove welcome message

Tutorial how to remove the welcome message

* fix: Move to appropriate place

Moved topic to Configuration page

* feat: Add how to enter in config.nu
  • Loading branch information
gustavopmaia committed Feb 27, 2023
1 parent fe88097 commit b82e9d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions book/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ Nushell follows underneath orders to locate the editor:

You can learn more about setting up colors and theming in the [associated chapter](coloring_and_theming.md).

## Remove Welcome Message

To remove the welcome message, you need to edit your `config.nu` by typing `config nu` in your terminal, then you go to the global configuration `let-env config` and set `show-banner` option to false, like this:

@[code](@snippets/installation/remove_welcome_message.nu)

## Configuring Nu as a login shell

To use Nu as a login shell, you'll need to configure the `$env` variable. With this, you'll have enough support to run external commands as a login shell.
Expand Down
5 changes: 5 additions & 0 deletions snippets/installation/remove_welcome_message.nu
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
let-env config = {
...
show-banner: false,
...
}

0 comments on commit b82e9d5

Please sign in to comment.