From 6d40d757862044eb315dc59abbb51d9c91b3cba4 Mon Sep 17 00:00:00 2001 From: Jason Morganson <128727+jasonmorganson@users.noreply.github.com> Date: Tue, 19 Mar 2024 15:50:36 -0400 Subject: [PATCH] Move nu configs to config dir --- .chezmoiexternal.toml | 5 +++-- dot_config/nushell/config.nu | 4 ++-- dot_config/nushell/env.nu | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.chezmoiexternal.toml b/.chezmoiexternal.toml index 7b35a407..42863bd0 100644 --- a/.chezmoiexternal.toml +++ b/.chezmoiexternal.toml @@ -1,10 +1,11 @@ -[".local/share/nushell/default_env.nu"] +[".config/nushell/default_env.nu"] type = "file" url = "https://raw.githubusercontent.com/nushell/nushell/0.91.0/crates/nu-utils/src/sample_config/default_env.nu" -[".local/share/nushell/default_config.nu"] +[".config/nushell/default_config.nu"] type = "file" url = "https://raw.githubusercontent.com/nushell/nushell/0.91.0/crates/nu-utils/src/sample_config/default_config.nu" + [".local/share/gitalias/gitalias.txt"] type = "file" url = "https://raw.githubusercontent.com/GitAlias/gitalias/main/gitalias.txt" diff --git a/dot_config/nushell/config.nu b/dot_config/nushell/config.nu index f3876bbd..32cebd97 100644 --- a/dot_config/nushell/config.nu +++ b/dot_config/nushell/config.nu @@ -1,4 +1,4 @@ -source ~/.local/share/nushell/default_config.nu +source ./default_config.nu $env.config = ( $env.config @@ -17,4 +17,4 @@ use theme.nu overlay use git.nu overlay use aliases.nu -source ~/.config/nushell/scripts/prompt.nu +source ./scripts/prompt.nu diff --git a/dot_config/nushell/env.nu b/dot_config/nushell/env.nu index 67577775..b78f046d 100644 --- a/dot_config/nushell/env.nu +++ b/dot_config/nushell/env.nu @@ -1,4 +1,4 @@ -source ~/.local/share/nushell/default_env.nu +source ./default_env.nu bash -c $"source ($env.HOME)/.profile && env" | lines