mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 10:18:37 +02:00
feat: nushell - update extraConfig
This commit is contained in:
@@ -147,11 +147,6 @@ const NU_LIB_DIRS = [
|
|||||||
($nu.default-config-dir | path join 'scripts') # add <nushell-config-dir>/scripts
|
($nu.default-config-dir | path join 'scripts') # add <nushell-config-dir>/scripts
|
||||||
($nu.data-dir | path join 'completions') # default home for nushell completions
|
($nu.data-dir | path join 'completions') # default home for nushell completions
|
||||||
]
|
]
|
||||||
# You can replace (override) or append to this list by shadowing the constant
|
|
||||||
const NU_LIB_DIRS = $NU_LIB_DIRS ++ [($nu.default-config-dir | path join 'modules')]
|
|
||||||
|
|
||||||
# An environment variable version of this also exists. It is searched after the constant.
|
|
||||||
$env.NU_LIB_DIRS ++= [ ($nu.data-dir | path join "nu_scripts") ]
|
|
||||||
|
|
||||||
# NU_PLUGIN_DIRS
|
# NU_PLUGIN_DIRS
|
||||||
# --------------
|
# --------------
|
||||||
@@ -162,8 +157,6 @@ $env.NU_LIB_DIRS ++= [ ($nu.data-dir | path join "nu_scripts") ]
|
|||||||
const NU_PLUGIN_DIRS = [
|
const NU_PLUGIN_DIRS = [
|
||||||
($nu.default-config-dir | path join 'plugins') # add <nushell-config-dir>/plugins
|
($nu.default-config-dir | path join 'plugins') # add <nushell-config-dir>/plugins
|
||||||
]
|
]
|
||||||
# You can replace (override) or append to this list by shadowing the constant
|
|
||||||
const NU_PLUGIN_DIRS = $NU_PLUGIN_DIRS ++ [($nu.default-config-dir | path join 'plugins')]
|
|
||||||
|
|
||||||
# As with NU_LIB_DIRS, an $env.NU_PLUGIN_DIRS is searched after the constant version
|
# As with NU_LIB_DIRS, an $env.NU_PLUGIN_DIRS is searched after the constant version
|
||||||
|
|
||||||
|
|||||||
@@ -25,19 +25,24 @@ in {
|
|||||||
# https://github.com/nushell/nushell/issues/8214
|
# https://github.com/nushell/nushell/issues/8214
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
source /etc/agenix/alias-for-work.nushell
|
source /etc/agenix/alias-for-work.nushell
|
||||||
|
|
||||||
|
# Directories in this constant are searched by the
|
||||||
|
# `use` and `source` commands.
|
||||||
|
const NU_LIB_DIRS = $NU_LIB_DIRS ++ ['${nu_scripts}/share/nu_scripts']
|
||||||
|
|
||||||
# completion
|
# completion
|
||||||
use ${nu_scripts}/share/nu_scripts/custom-completions/git/git-completions.nu *
|
use custom-completions/git/git-completions.nu *
|
||||||
use ${nu_scripts}/share/nu_scripts/custom-completions/glow/glow-completions.nu *
|
use custom-completions/glow/glow-completions.nu *
|
||||||
use ${nu_scripts}/share/nu_scripts/custom-completions/just/just-completions.nu *
|
use custom-completions/just/just-completions.nu *
|
||||||
use ${nu_scripts}/share/nu_scripts/custom-completions/make/make-completions.nu *
|
use custom-completions/make/make-completions.nu *
|
||||||
use ${nu_scripts}/share/nu_scripts/custom-completions/man/man-completions.nu *
|
use custom-completions/man/man-completions.nu *
|
||||||
use ${nu_scripts}/share/nu_scripts/custom-completions/nix/nix-completions.nu *
|
use custom-completions/nix/nix-completions.nu *
|
||||||
use ${nu_scripts}/share/nu_scripts/custom-completions/cargo/cargo-completions.nu *
|
use custom-completions/cargo/cargo-completions.nu *
|
||||||
use ${nu_scripts}/share/nu_scripts/custom-completions/zellij/zellij-completions.nu *
|
use custom-completions/zellij/zellij-completions.nu *
|
||||||
# alias
|
# alias
|
||||||
# use ${nu_scripts}/share/nu_scripts/aliases/git/git-aliases.nu *
|
use aliases/git/git-aliases.nu *
|
||||||
use ${nu_scripts}/share/nu_scripts/aliases/eza/eza-aliases.nu *
|
use aliases/eza/eza-aliases.nu *
|
||||||
use ${nu_scripts}/share/nu_scripts/aliases/bat/bat-aliases.nu *
|
use aliases/bat/bat-aliases.nu *
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user