From 2c31b3db072f60869dbe49f3bb1943d76c07b21e Mon Sep 17 00:00:00 2001 From: Ofek Lev Date: Tue, 29 Oct 2024 05:12:55 -0400 Subject: [PATCH] Ensure default config files end with a new line (#14192) # Description This allows users to immediately add new lines to the configuration in the usual way. --- crates/nu-utils/src/sample_config/default_config.nu | 2 +- crates/nu-utils/src/sample_config/default_env.nu | 2 +- crates/nu-utils/src/sample_config/sample_login.nu | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/nu-utils/src/sample_config/default_config.nu b/crates/nu-utils/src/sample_config/default_config.nu index 5271932221..2fa4a5b5bf 100644 --- a/crates/nu-utils/src/sample_config/default_config.nu +++ b/crates/nu-utils/src/sample_config/default_config.nu @@ -896,4 +896,4 @@ $env.config = { event: { edit: selectall } } ] -} \ No newline at end of file +} diff --git a/crates/nu-utils/src/sample_config/default_env.nu b/crates/nu-utils/src/sample_config/default_env.nu index 172afcb37c..73605ef71b 100644 --- a/crates/nu-utils/src/sample_config/default_env.nu +++ b/crates/nu-utils/src/sample_config/default_env.nu @@ -98,4 +98,4 @@ $env.NU_PLUGIN_DIRS = [ # $env.PATH = ($env.PATH | uniq) # To load from a custom file you can use: -# source ($nu.default-config-dir | path join 'custom.nu') \ No newline at end of file +# source ($nu.default-config-dir | path join 'custom.nu') diff --git a/crates/nu-utils/src/sample_config/sample_login.nu b/crates/nu-utils/src/sample_config/sample_login.nu index 5231661879..8e0a651499 100644 --- a/crates/nu-utils/src/sample_config/sample_login.nu +++ b/crates/nu-utils/src/sample_config/sample_login.nu @@ -6,4 +6,4 @@ $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 \ No newline at end of file +echo $nu.loginshell-path