actually sourced scripts directory.
This commit is contained in:
		
							parent
							
								
									442aca26a1
								
							
						
					
					
						commit
						feec1a3dda
					
				
					 2 changed files with 6 additions and 4 deletions
				
			
		| 
						 | 
					@ -897,5 +897,6 @@ def git-authors [] {
 | 
				
			||||||
# source the conditional config file that contains
 | 
					# source the conditional config file that contains
 | 
				
			||||||
# all the definitions, aliases, and env vars we want to set conditionally.
 | 
					# all the definitions, aliases, and env vars we want to set conditionally.
 | 
				
			||||||
const conditional_config = ($nu.temp-path | path join 'conditional-config.nu')
 | 
					const conditional_config = ($nu.temp-path | path join 'conditional-config.nu')
 | 
				
			||||||
 | 
					# open $conditional_config | print
 | 
				
			||||||
source $conditional_config
 | 
					source $conditional_config
 | 
				
			||||||
rm $conditional_config
 | 
					rm $conditional_config
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -123,9 +123,10 @@ if (is-installed starship) {
 | 
				
			||||||
if (is-installed nvim) {
 | 
					if (is-installed nvim) {
 | 
				
			||||||
    $env.EDITOR = nvim
 | 
					    $env.EDITOR = nvim
 | 
				
			||||||
    $env.VISUAL = nvim
 | 
					    $env.VISUAL = nvim
 | 
				
			||||||
    'alias vim = nvim
 | 
					    [ "alias vim = nvim\n"
 | 
				
			||||||
    alias vimdiff = nvim -d
 | 
					    "alias vimdiff = nvim -d\n"] |
 | 
				
			||||||
    ' | save --append $conditional_config
 | 
					    str join |
 | 
				
			||||||
 | 
					    save --append $conditional_config
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
ls (($nu.default-config-dir | path join ('scripts/**/*.nu')) | into glob) | 
 | 
					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…
	
	Add table
		Add a link
		
	
		Reference in a new issue