From 7fa43764b0c612cc2fdc2a73b1d929e312996ce6 Mon Sep 17 00:00:00 2001 From: Ruoyou Zhang <38329022+ruoyouz@users.noreply.github.com> Date: Sun, 12 Jul 2026 16:09:36 -0500 Subject: [PATCH] add nushell complete attribute --- src/shell-integration/nushell/vendor/autoload/ghostty.nu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/shell-integration/nushell/vendor/autoload/ghostty.nu b/src/shell-integration/nushell/vendor/autoload/ghostty.nu index b2731f8a8..c5ac76fb1 100644 --- a/src/shell-integration/nushell/vendor/autoload/ghostty.nu +++ b/src/shell-integration/nushell/vendor/autoload/ghostty.nu @@ -6,6 +6,8 @@ export module ghostty { # Wrap `ssh` with `ghostty +ssh` and translate the shell-integration # feature flags into command options. + # Add attribute so nushell completion can function correctly + @complete external export def --wrapped ssh [...args] { if not ((has_feature "ssh-env") or (has_feature "ssh-terminfo")) { ^ssh ...$args @@ -24,6 +26,8 @@ export module ghostty { } # Wrap `sudo` to preserve Ghostty's TERMINFO environment variable + # Add attribute so nushell completion can function correctly + @complete external export def --wrapped sudo [...args] { mut sudo_args = $args