commit d4e083385627e7c01589624fc180d7ee914f0111
parent 410a8b6a470d7e47f8a89c71dd14021a0ca1f72d
Author: minerva-jupiter <ryouturn@gmail.com>
Date: Fri, 29 May 2026 04:32:39 +0000
"feat(completion): Integrate carapace for Nushell completions"
success to copy to clip
Diffstat:
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/config.nu b/config.nu
@@ -19,3 +19,8 @@
$env.config.show_banner = false
mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
+
+
+
+# ${UserConfigDir}/nushell/config.nu
+source $"($nu.cache-dir)/carapace.nu"
diff --git a/env.nu b/env.nu
@@ -19,3 +19,8 @@
# env.nu
$env.STARSHIP_CONFIG = ("~/.config/starship/starship.toml" | path expand)
+
+## ${UserConfigDir}/nushell/env.nu
+$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense' # optional
+mkdir $"($nu.cache-dir)"
+carapace _carapace nushell | save --force $"($nu.cache-dir)/carapace.nu"