aboutsummaryrefslogtreecommitdiff
path: root/nu
diff options
context:
space:
mode:
authorMagdalena Szweda <hi@roughlynamed.net>2026-10-10 10:44:41 +0200
committerMagdalena Szweda <hi@roughlynamed.net>2026-10-10 10:49:56 +0200
commit2ffc5671d58c453797c8011638565f271b53cd7f (patch)
tree3e22583b587f3aa2d5635aa53bec82c625f1b1f1 /nu
parent913fb61c3750d1c0b24ff7bc88836749d4de3448 (diff)
Shell(nu): add nushell and its config with Carapace.
CHANGELOG: - New 'nu' directory - Nushell configuration with 'Carapace' for completion
Diffstat (limited to 'nu')
-rw-r--r--nu/.config/nushell/config.nu12
1 files changed, 12 insertions, 0 deletions
diff --git a/nu/.config/nushell/config.nu b/nu/.config/nushell/config.nu
new file mode 100644
index 0000000..4d0c13d
--- /dev/null
+++ b/nu/.config/nushell/config.nu
@@ -0,0 +1,12 @@
+$env.CARAPACE_BRIDGES = 'fish,zsh,bash'
+$env.CARAPACE_LENIENT = 1
+
+let carapace_completer = {|spans: list<string>|
+ carapace $spans.0 nushell ...$spans | from json
+}
+
+$env.config.completions.external = {
+ enable: true
+ max_results: 100
+ completer: $carapace_completer
+}