actually sourced scripts directory.

This commit is contained in:
Gabe Venberg 2024-03-07 12:19:27 -06:00
parent 442aca26a1
commit feec1a3dda
2 changed files with 6 additions and 4 deletions

View file

@ -897,5 +897,6 @@ def git-authors [] {
# source the conditional config file that contains
# all the definitions, aliases, and env vars we want to set conditionally.
const conditional_config = ($nu.temp-path | path join 'conditional-config.nu')
# open $conditional_config | print
source $conditional_config
rm $conditional_config

View file

@ -123,9 +123,10 @@ if (is-installed starship) {
if (is-installed nvim) {
$env.EDITOR = nvim
$env.VISUAL = nvim
'alias vim = nvim
alias vimdiff = nvim -d
' | save --append $conditional_config
[ "alias vim = nvim\n"
"alias vimdiff = nvim -d\n"] |
str join |
save --append $conditional_config
}
ls (($nu.default-config-dir | path join ('scripts/**/*.nu')) | into glob) |
each { |it| $"source ($it.name)\n" | save --append $conditional_config} | null
each { |it| $"source ($it.name)\n" | save --append $conditional_config} | ignore