Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 39 additions & 13 deletions book/coloring_and_theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,55 @@ Many parts of Nushell's interface can have their color customized. All of these

## Table Borders

Table borders are controlled by the `$env.config.table.mode` setting in `config.nu`. Here is an example:
Table borders are controlled by the `$env.config.table.mode` setting. It can be changed at run time, or in the `config.nu` file:

```nu
$env.config = {
table: {
mode: rounded
}
}
$env.config.table.mode = 'rounded'
```

Here are the current options for `$env.config.table.mode`:
The options for `$env.config.table.mode` can be listed with `table --list`:

<!-- Generated with table --list | each {|| $"- `($in)`"} | sort | str join "\n"` -->

- `rounded` # of course, this is the best one :)
- `ascii_rounded`
- `basic_compact`
- `basic`
- `compact`
- `compact_double`
- `compact`
- `default`
- `dots`
- `heavy`
- `light`
- `markdown`
- `none`
- `psql`
- `reinforced`
- `restructured`
- `rounded`
- `thin`
- `with_love`
- `reinforced`
- `heavy`
- `none`
- `other`

Examples:

```nu
$env.config.table.mode = 'rounded'
table --list | first 5
# => ╭───┬────────────────╮
# => │ 0 │ basic │
# => │ 1 │ compact │
# => │ 2 │ compact_double │
# => │ 3 │ default │
# => │ 4 │ heavy │
# => ╰───┴────────────────╯

$env.config.table.mode = 'psql'
table --list | first 5
# => 0 | basic
# => 1 | compact
# => 2 | compact_double
# => 3 | default
# => 4 | heavy
```

### Color Symbologies

Expand Down