Attempt to remove absolute paths from nushell config

This commit is contained in:
2026-01-13 12:12:20 +00:00
parent 936e8338c6
commit 4cd0355075
2 changed files with 9 additions and 9 deletions

View File

@@ -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

View File

@@ -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 <nushell-config-dir>/scripts
($env.FILE_PWD | path join "scripts"), # add <nushell-config-dir>/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