From b48f50f018c3b15f6b8bfda92a84865144136ee7 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Thu, 19 Dec 2024 20:21:52 +0100 Subject: [PATCH] Remove unused `sample_login.nu` file (#14632) This file is not made accessible to the user through any of our `config` commands. Thus I discussed with Douglas to delete it, to ensure it doesn't go out of date (the version added with #14601 was not yet part of the bumping script) All the necessary information on how to setup a `login.nu` file is provided in the website documentation --- crates/nu-utils/src/default_files/README.md | 4 ---- crates/nu-utils/src/default_files/sample_login.nu | 12 ------------ 2 files changed, 16 deletions(-) delete mode 100644 crates/nu-utils/src/default_files/sample_login.nu diff --git a/crates/nu-utils/src/default_files/README.md b/crates/nu-utils/src/default_files/README.md index 926870d20a..105eff773e 100644 --- a/crates/nu-utils/src/default_files/README.md +++ b/crates/nu-utils/src/default_files/README.md @@ -70,7 +70,3 @@ Counterpart to `scaffold_env.nu`. * This file is used *one-time* (typically) at **first** startup * If the `$nu.default-config-path` directory does not exist, the directory is created and then both `scaffold_env.nu` and `scaffold_config.nu` are written to it * Contains only commented lines explaining the purpose of the file to the user, along with information on the `config nu` command. - -## `sample_login.nu` - -This file is not used by any Nushell code. Of course, if the user has a `login.nu`, then it will be evaluated during startup of a login shell. \ No newline at end of file diff --git a/crates/nu-utils/src/default_files/sample_login.nu b/crates/nu-utils/src/default_files/sample_login.nu deleted file mode 100644 index 511e3b803c..0000000000 --- a/crates/nu-utils/src/default_files/sample_login.nu +++ /dev/null @@ -1,12 +0,0 @@ -# Example Nushell Loginshell Config File -# -# version = "0.100.1" -# -# - has to be as login.nu in the default config directory -# - will be sourced after config.nu and env.nu in case of nushell started as login shell - -# just as an example for overwriting of an environment variable of env.nu -$env.PROMPT_INDICATOR = {|| "(LS)> " } - -# Similar to env-path and config-path there is a variable containing the path to login.nu -echo $nu.loginshell-path