From 1ec26e0bb95bc6c72fcbc353a404af03b173bae2 Mon Sep 17 00:00:00 2001 From: Xiangxuan Liu Date: Thu, 21 Nov 2024 00:07:58 +0800 Subject: [PATCH] wezterm@nightly: add shell completions --- Casks/w/wezterm@nightly.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Casks/w/wezterm@nightly.rb b/Casks/w/wezterm@nightly.rb index a30328c780b2..75e8f7eab2cb 100644 --- a/Casks/w/wezterm@nightly.rb +++ b/Casks/w/wezterm@nightly.rb @@ -11,7 +11,6 @@ conflicts_with cask: "wezterm" app "WezTerm.app" - %w[ wezterm wezterm-gui @@ -21,6 +20,13 @@ binary "#{appdir}/WezTerm.app/Contents/MacOS/#{tool}" end + binary "WezTerm.app/Contents/Resources/shell-completion/zsh", + target: "#{HOMEBREW_PREFIX}/share/zsh/site-functions/_wezterm" + binary "WezTerm.app/Contents/Resources/shell-completion/bash", + target: "#{HOMEBREW_PREFIX}/etc/bash_completion.d/wezterm" + binary "WezTerm.app/Contents/Resources/shell-completion/fish", + target: "#{HOMEBREW_PREFIX}/share/fish/vendor_completions.d/wezterm.fish" + preflight do # Move "WezTerm-macos-#{version}/WezTerm.app" out of the subfolder staged_subfolder = staged_path.glob(["WezTerm-*", "wezterm-*"]).first