mirror of
https://github.com/Cian-H/dotfiles.git
synced 2026-05-21 22:14:44 +01:00
Attempt to remove absolute paths from nushell config
This commit is contained in:
@@ -1,15 +1,15 @@
|
|||||||
# Imports of custom modules from init to help keep my config file clean
|
# Imports of custom modules from init to help keep my config file clean
|
||||||
use ~/.config/nushell/default_config.nu
|
use default_config.nu
|
||||||
use ~/.config/nushell/init.nu *
|
use init.nu *
|
||||||
# Combine config records to create the final config
|
# Combine config records to create the final config
|
||||||
$env.config = (
|
$env.config = (
|
||||||
(default_config) | merge (theme) | merge (my_config)
|
(default_config) | merge (theme) | merge (my_config)
|
||||||
)
|
)
|
||||||
# Initialise the plugins
|
# Initialise the plugins
|
||||||
source ~/.config/nushell/nu_scripts.nu
|
source nu_scripts.nu
|
||||||
# initialise the completion plugins
|
# initialise the completion plugins
|
||||||
source ~/.config/nushell/completions/atuin.nu
|
source completions/atuin.nu
|
||||||
source ~/.config/nushell/completions/zoxide.nu
|
source completions/zoxide.nu
|
||||||
source ~/.config/nushell/completions/nu_scripts.nu
|
source completions/nu_scripts.nu
|
||||||
# Finally, we run a system info fetch
|
# Finally, we run a system info fetch
|
||||||
sysfetch
|
sysfetch
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# version = "0.89.0"
|
# version = "0.89.0"
|
||||||
|
|
||||||
use ~/.config/nushell/prompt.nu *
|
use prompt.nu *
|
||||||
|
|
||||||
# Use nushell functions to define your right and left prompt
|
# Use nushell functions to define your right and left prompt
|
||||||
$env.STARSHIP_SHELL = "nu"
|
$env.STARSHIP_SHELL = "nu"
|
||||||
@@ -40,7 +40,7 @@ $env.ENV_CONVERSIONS = {
|
|||||||
# Directories to search for scripts when calling source or use
|
# Directories to search for scripts when calling source or use
|
||||||
# The default for this is $nu.default-config-dir/scripts
|
# The default for this is $nu.default-config-dir/scripts
|
||||||
$env.NU_LIB_DIRS = [
|
$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
|
# Directories to search for plugin binaries when calling register
|
||||||
@@ -77,7 +77,7 @@ $env.PATH = (
|
|||||||
$env.PATH
|
$env.PATH
|
||||||
| split row (char esep)
|
| split row (char esep)
|
||||||
| append (
|
| append (
|
||||||
open $"($nu.default-config-dir)/path.env"
|
open ($env.FILE_PWD | path join "path.env")
|
||||||
| from csv --noheaders --trim all
|
| from csv --noheaders --trim all
|
||||||
| get "column0"
|
| get "column0"
|
||||||
| path expand --no-symlink
|
| path expand --no-symlink
|
||||||
|
|||||||
Reference in New Issue
Block a user