From 4cd035507597fc9fd9d4bb1a33c036ca722b08fb Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Tue, 13 Jan 2026 12:12:20 +0000 Subject: [PATCH] Attempt to remove absolute paths from nushell config --- dot_config/nushell/config.nu | 12 ++++++------ dot_config/nushell/env.nu | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dot_config/nushell/config.nu b/dot_config/nushell/config.nu index 8c0224c..eb873ef 100644 --- a/dot_config/nushell/config.nu +++ b/dot_config/nushell/config.nu @@ -1,15 +1,15 @@ # Imports of custom modules from init to help keep my config file clean -use ~/.config/nushell/default_config.nu -use ~/.config/nushell/init.nu * +use default_config.nu +use init.nu * # Combine config records to create the final config $env.config = ( (default_config) | merge (theme) | merge (my_config) ) # Initialise the plugins -source ~/.config/nushell/nu_scripts.nu +source nu_scripts.nu # initialise the completion plugins -source ~/.config/nushell/completions/atuin.nu -source ~/.config/nushell/completions/zoxide.nu -source ~/.config/nushell/completions/nu_scripts.nu +source completions/atuin.nu +source completions/zoxide.nu +source completions/nu_scripts.nu # Finally, we run a system info fetch sysfetch diff --git a/dot_config/nushell/env.nu b/dot_config/nushell/env.nu index da636e3..8c45d3b 100644 --- a/dot_config/nushell/env.nu +++ b/dot_config/nushell/env.nu @@ -2,7 +2,7 @@ # # version = "0.89.0" -use ~/.config/nushell/prompt.nu * +use prompt.nu * # Use nushell functions to define your right and left prompt $env.STARSHIP_SHELL = "nu" @@ -40,7 +40,7 @@ $env.ENV_CONVERSIONS = { # Directories to search for scripts when calling source or use # The default for this is $nu.default-config-dir/scripts $env.NU_LIB_DIRS = [ - ($nu.default-config-dir | path join "scripts"), # add /scripts + ($env.FILE_PWD | path join "scripts"), # add /scripts ] # Directories to search for plugin binaries when calling register @@ -77,7 +77,7 @@ $env.PATH = ( $env.PATH | split row (char esep) | append ( - open $"($nu.default-config-dir)/path.env" + open ($env.FILE_PWD | path join "path.env") | from csv --noheaders --trim all | get "column0" | path expand --no-symlink