Skip to content

Commit

Permalink
wezterm@nightly: add shell completions
Browse files Browse the repository at this point in the history
  • Loading branch information
nauxliu committed Nov 20, 2024
1 parent cab5b0b commit 173eeeb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Casks/w/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
conflicts_with cask: "wezterm"

app "WezTerm.app"

%w[
wezterm
wezterm-gui
Expand All @@ -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
Expand Down

0 comments on commit 173eeeb

Please sign in to comment.