Improve macOS support for nushell
This commit is contained in:
parent
d26cb96e51
commit
0bd49d895b
@ -90,6 +90,14 @@
|
|||||||
allowfilter = true
|
allowfilter = true
|
||||||
allowAnySHA1InWant = true
|
allowAnySHA1InWant = true
|
||||||
|
|
||||||
|
#{{- if lookPath "git-lfs" }}
|
||||||
|
[filter "lfs"]
|
||||||
|
clean = git-lfs clean -- %f
|
||||||
|
smudge = git-lfs smudge -- %f
|
||||||
|
process = git-lfs filter-process
|
||||||
|
required = true
|
||||||
|
#{{- end }}
|
||||||
|
|
||||||
#{{- range $file := (glob (joinPath .chezmoi.homeDir ".config" "git" "config.d" "*")) }}
|
#{{- range $file := (glob (joinPath .chezmoi.homeDir ".config" "git" "config.d" "*")) }}
|
||||||
[include]
|
[include]
|
||||||
path = #{{ $file }}
|
path = #{{ $file }}
|
||||||
|
|||||||
@ -65,6 +65,7 @@ load-env {
|
|||||||
PATH: ([
|
PATH: ([
|
||||||
$env.XDG_BIN_HOME
|
$env.XDG_BIN_HOME
|
||||||
/opt/homebrew/bin
|
/opt/homebrew/bin
|
||||||
|
/opt/homebrew/sbin
|
||||||
($'($env.CARGO_HOME?)' | path join "bin")
|
($'($env.CARGO_HOME?)' | path join "bin")
|
||||||
($'($env.HOME)/go/bin')
|
($'($env.HOME)/go/bin')
|
||||||
($'($env.HOME)/.deno/bin')
|
($'($env.HOME)/.deno/bin')
|
||||||
@ -72,6 +73,11 @@ load-env {
|
|||||||
($'($env.HOME)/.local/share/JetBrains/Toolbox/scripts')
|
($'($env.HOME)/.local/share/JetBrains/Toolbox/scripts')
|
||||||
($'($env.HOME)/google-cloud-sdk/bin')
|
($'($env.HOME)/google-cloud-sdk/bin')
|
||||||
/usr/local/bin
|
/usr/local/bin
|
||||||
|
/usr/bin
|
||||||
|
/bin
|
||||||
|
/usr/sbin
|
||||||
|
/sbin
|
||||||
|
/Applications/Ghostty.app/Contents/MacOS
|
||||||
...($env.PATH | split row (char esep))
|
...($env.PATH | split row (char esep))
|
||||||
/snap/bin
|
/snap/bin
|
||||||
] | each {|p| if ($p | path exists) { $p } else { null }}
|
] | each {|p| if ($p | path exists) { $p } else { null }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user