feat: add devenv
This commit is contained in:
1 parent
6bddc039b3
commit
be976926f8
6 files changed
+99
-7
No files matched your search
@@ -103,7 +103,7 @@ source $"($nu.cache-dir)/starship.nu"
|
||||
source $"($nu.cache-dir)/carapace.nu"
|
||||
source $"($nu.cache-dir)/zoxide.nu"
|
||||
source $"($nu.cache-dir)/atuin.nu"
|
||||
source $"($nu.cache-dir)/mise.nu"
|
||||
source $"($nu.cache-dir)/devenv.nu"
|
||||
|
||||
#--------
|
||||
# Scripts
|
||||
|
||||
@@ -32,12 +32,7 @@ if (which zoxide | is-not-empty) { zoxide init nushell | save -f $"($nu.cache-di
|
||||
if (which atuin | is-not-empty) { atuin init nu | save -f $"($nu.cache-dir)/atuin.nu" } else { "" | save -f $"($nu.cache-dir)/atuin.nu" }
|
||||
$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense'
|
||||
if (which carapace | is-not-empty) { ^carapace _carapace nushell | str replace '$env.config = $current' '$env.config = ($env.config? | default {} | merge $current)' | save -f $"($nu.cache-dir)/carapace.nu" } else { "" | save -f $"($nu.cache-dir)/carapace.nu" }
|
||||
|
||||
if (which mise | is-not-empty) {
|
||||
mise activate nu | save -f $"($nu.cache-dir)/mise.nu"
|
||||
} else {
|
||||
"" | save -f $"($nu.cache-dir)/mise.nu"
|
||||
}
|
||||
if (which devenv | is-not-empty) { devenv hook nu | save -f $"($nu.cache-dir)/devenv.nu" } else { "" | save -f $"($nu.cache-dir)/devenv.nu" }
|
||||
|
||||
# Deduplicate PATH at the end
|
||||
$env.PATH = ($env.PATH | uniq)
|
||||
|
||||
Reference in new issue
Block a user