nushell: add nu_scripts to NU_LIB_DIRS
All checks were successful
/ check (push) Successful in 7m46s

This commit is contained in:
Erwin Boskma 2024-01-29 10:03:11 +01:00
parent 84bac3cf2e
commit 1a37a82af9
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ

View file

@ -27,6 +27,8 @@ in
${config.programs.zoxide.package}/bin/zoxide init nushell ${zoxideOptions} | save --force ${config.xdg.cacheHome}/zoxide/init.nu
# Temporary fix until zoxide releases new version
sed -i 's/def-env/def --env/g' ${config.xdg.cacheHome}/zoxide/init.nu
$env.NU_LIB_DIRS = ($env.NU_LIB_DIRS | append ${pkgs.nu_scripts}/share/nu_scripts)
'';
extraConfig = ''
alias vim = nvim
@ -40,7 +42,9 @@ in
use kink.nu
use ${pkgs.nu_scripts}/share/nu_scripts/themes/nu-themes/dracula.nu
# use ${pkgs.nu_scripts}/share/nu_scripts/themes/nu-themes/dracula.nu
use themes/nu-themes/dracula.nu
$env.config = ($env.config | merge { color_config: (dracula)})
source ${config.xdg.cacheHome}/zoxide/init.nu