File tree 1 file changed +39
-13
lines changed 1 file changed +39
-13
lines changed Original file line number Diff line number Diff line change @@ -4,29 +4,55 @@ Many parts of Nushell's interface can have their color customized. All of these
4
4
5
5
## Table Borders
6
6
7
- Table borders are controlled by the ` $env.config.table.mode ` setting in ` config.nu ` . Here is an example :
7
+ Table borders are controlled by the ` $env.config.table.mode ` setting. It can be changed at run time, or in the ` config.nu ` file :
8
8
9
9
``` nu
10
- $env.config = {
11
- table: {
12
- mode: rounded
13
- }
14
- }
10
+ $env.config.table.mode = 'rounded'
15
11
```
16
12
17
- Here are the current options for ` $env.config.table.mode ` :
13
+ The options for ` $env.config.table.mode ` can be listed with ` table --list ` :
14
+
15
+ <!-- Generated with table --list | each {|| $"- `($in)`"} | sort | str join "\n"` -->
18
16
19
- - ` rounded ` # of course, this is the best one :)
17
+ - ` ascii_rounded `
18
+ - ` basic_compact `
20
19
- ` basic `
21
- - ` compact `
22
20
- ` compact_double `
21
+ - ` compact `
22
+ - ` default `
23
+ - ` dots `
24
+ - ` heavy `
23
25
- ` light `
26
+ - ` markdown `
27
+ - ` none `
28
+ - ` psql `
29
+ - ` reinforced `
30
+ - ` restructured `
31
+ - ` rounded `
24
32
- ` thin `
25
33
- ` with_love `
26
- - ` reinforced `
27
- - ` heavy `
28
- - ` none `
29
- - ` other `
34
+
35
+ Examples:
36
+
37
+ ``` nu
38
+ $env.config.table.mode = 'rounded'
39
+ table --list | first 5
40
+ # => ╭───┬────────────────╮
41
+ # => │ 0 │ basic │
42
+ # => │ 1 │ compact │
43
+ # => │ 2 │ compact_double │
44
+ # => │ 3 │ default │
45
+ # => │ 4 │ heavy │
46
+ # => ╰───┴────────────────╯
47
+
48
+ $env.config.table.mode = 'psql'
49
+ table --list | first 5
50
+ # => 0 | basic
51
+ # => 1 | compact
52
+ # => 2 | compact_double
53
+ # => 3 | default
54
+ # => 4 | heavy
55
+ ```
30
56
31
57
## Color Configuration
32
58
You can’t perform that action at this time.
0 commit comments