actually sourced scripts directory.
This commit is contained in:
parent
442aca26a1
commit
feec1a3dda
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue