You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: blog/2024-12-24-nushell_0_101_0.md
+33-3Lines changed: 33 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,20 +14,41 @@ excerpt: Today, we're releasing version 0.101.0 of Nu. This release adds...
14
14
15
15
<!-- TODO: write this excerpt -->
16
16
17
-
Today, we're releasing version 0.101.0 of Nu. This release adds...
17
+
Today, we're releasing version 0.101.0 of Nu. This release adds a simplified startup configuration, ...
18
18
19
19
# Where to get it
20
20
21
-
Nu 0.101.0 is available as [pre-built binaries](https://github.com/nushell/nushell/releases/tag/0.101.0) or from [crates.io](https://crates.io/crates/nu). If you have Rust installed you can install it using `cargo install nu`.
21
+
Nushell 0.101.0 is available as [pre-built binaries](https://github.com/nushell/nushell/releases/tag/0.101.0) or from [crates.io](https://crates.io/crates/nu). If you have Rust installed, you can also install it using `cargo install nu`.
22
22
23
-
As part of this release, we also publish a set of optional plugins you can install and use with Nu. To install, use `cargo install nu_plugin_<plugin name>`.
23
+
As part of this release, we also publish a set of optional [plugins](/book/plugins.md) you can install and use with Nushell.
24
24
25
25
# Table of contents
26
26
27
27
<!-- TODO: once all the content below is finished and committed, `use nu_scripts/make_release/release-note/notes.nu *` and run `write-toc $this_file`. -->
28
28
29
29
# Highlights and themes of this release
30
30
31
+
## Simplified Startup Configuration
32
+
33
+
With [#14249](https://github.com/nushell/nushell/pull/14249), Nushell now always loads its internal `default_env.nu` before the user `env.nu` is loaded, then loads the internal `default_config.nu` before the user's `config.nu` is loaded. This allows for a simpler user-configuration experience. Details are in [this blog entry](https://www.nushell.sh/blog/2024-12-04-configuration_preview.html) along with an updated [Configuration Chapter](https://www.nushell.sh/book/configuration.html) which should go live sometime today.
34
+
35
+
### Related Startup Config Changes
36
+
37
+
-[#14345](https://github.com/nushell/nushell/pull/14345): Hooks fields are non-optional
38
+
-[#14341](https://github.com/nushell/nushell/pull/14341): Hooks now default to an empty value of the proper type (e.g., `[]` or `{}`) when not otherwise specified. This means that you can always safely append or merge a new hook without first needing to check if it was a valid list/record.
39
+
-[#14435](https://github.com/nushell/nushell/pull/14435): An `$env.config` is always created at startup, populated with default values, even when no configuration files are loaded.
40
+
-[#14549](https://github.com/nushell/nushell/pull/14549): The `const` version of `NU_LIB_DIRS` is now populated by default instead of `$env.NU_LIB_DIRS`.
41
+
-[#14553](https://github.com/nushell/nushell/pull/14553): The `const` version of `NU_PLUGIN_DIRS` is now populated by default instead of `$env.NU_PLUGIN_DIRS`.
42
+
-[#14566](https://github.com/nushell/nushell/pull/14566): `ENV_CONVERSIONS` is now an empty record by default. The `PATH`/`Path` conversions are handled internally.
43
+
-[#14579](https://github.com/nushell/nushell/pull/14579): More defaults are set in Rust. Also sets a default, empty `TRANSIENT_PROMPT_COMMAND_RIGHT` and `TRANSIENT_PROMPT_MULTILINE_INDICATOR`.
44
+
45
+
### Breaking Startup Config Changes
46
+
47
+
There may be (hopefully) minor breaking changes due to the startup configuration handling. Known possible issues include:
48
+
49
+
- Cannot merge changes to default menus since their definitions are no longer in `config.nu` by default. Instead, the entire menu should be redefined.
50
+
- Querying the `$env.NU_LIB_DIRS` will return an empty result by default. Query the constant `$NU_LIB_DIRS` instead.
51
+
31
52
<!-- NOTE: if you wanna write a section about a breaking change, when it's a very important one,
32
53
please add the following snippet to have a "warning" banner :)
33
54
> see [an example](https://www.nushell.sh/blog/2023-09-19-nushell_0_85_0.html#pythonesque-operators-removal)
@@ -46,6 +67,10 @@ As part of this release, we also publish a set of optional plugins you can insta
46
67
47
68
## Additions
48
69
70
+
### Duration/Date Arithmetic
71
+
72
+
With [#14295](https://github.com/nushell/nushell/pull/14295), dates can now be added to durations. Previously only durations could be added to dates.
73
+
49
74
## Breaking changes
50
75
51
76
### `++` operator
@@ -105,6 +130,11 @@ The `cpu_usage` column outputted by `sys cpu` works by sampling the CPU over a 4
105
130
106
131
In [#14019](https://github.com/nushell/nushell/pull/14019), the `split-by` command was deprecated. Instead, please use `group-by` with multiple groupers.
107
132
133
+
### `date to-record` and `date to-table`
134
+
135
+
-`date to-record` has been deprecated and will be removed in a future release. Please use `into record` in its place.
136
+
-`date to-table` has been deprecated and will be removed in a future release. Please use `into record | transpose | transpose -r` in its place.
0 commit comments