mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-16 14:11:20 +00:00
add nushell complete attribute
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user