Skip to content

Commit 583093b

Browse files
committed
No longer autoload deprecated-dirs (nushell#14242)
# Description Follow-up to nushell#13842. In that commit, using one of the `dirs`/`shells` aliases would notify the user that it would no longer be autoloaded in future releases. This is the removal stage. Side-benefit: Additional 1ms+ load time improvement # User-Facing Changes Breaking-change - `dirs` aliases are no longer autoloaded. Users can either choose to continue using the aliases by adding the following to the startup: ```nu use std/dirs shells-aliases * ``` Alternatively, users can use the `dirs` subcommands (rather than the aliases) with: ```nu use std/dirs ```
1 parent 24aee1b commit 583093b

File tree

2 files changed

+0
-175
lines changed

2 files changed

+0
-175
lines changed

crates/nu-std/src/lib.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,6 @@ pub fn load_standard_library(
5454
("mod.nu", "std/math", include_str!("../std/math/mod.nu")),
5555
("mod.nu", "std/util", include_str!("../std/util/mod.nu")),
5656
("mod.nu", "std/xml", include_str!("../std/xml/mod.nu")),
57-
// Remove in following release
58-
(
59-
"mod.nu",
60-
"std/deprecated_dirs",
61-
include_str!("../std/deprecated_dirs/mod.nu"),
62-
),
6357
];
6458

6559
for (filename, std_subdir_name, content) in std_submodules.drain(..) {
@@ -87,14 +81,6 @@ pub fn load_standard_library(
8781
let source = r#"
8882
# Prelude
8983
use std/core *
90-
use std/deprecated_dirs [
91-
enter
92-
shells
93-
g
94-
n
95-
p
96-
dexit
97-
]
9884
"#;
9985

10086
// Add a placeholder file to the stack of files being evaluated.

crates/nu-std/std/deprecated_dirs/mod.nu

Lines changed: 0 additions & 161 deletions
This file was deleted.

0 commit comments

Comments
 (0)