From 7eda56726b9baa743f5e364674653f23a8b30f21 Mon Sep 17 00:00:00 2001 From: Damien Deville Date: Wed, 1 Jan 2025 22:17:33 -0800 Subject: [PATCH] wezterm: Install terminfo The compiled terminfo entry was added to the app bundle (see https://github.com/wez/wezterm/pull/6538) so install it in `~/.terminfo`. --- Casks/w/wezterm.rb | 3 +++ Casks/w/wezterm@nightly.rb | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Casks/w/wezterm.rb b/Casks/w/wezterm.rb index b132e9aa23285..31a53cc412cc4 100644 --- a/Casks/w/wezterm.rb +++ b/Casks/w/wezterm.rb @@ -34,9 +34,12 @@ target: "#{HOMEBREW_PREFIX}/etc/bash_completion.d/wezterm" binary "#{appdir}/WezTerm.app/Contents/Resources/shell-completion/fish", target: "#{HOMEBREW_PREFIX}/share/fish/vendor_completions.d/wezterm.fish" + binary "#{appdir}/WezTerm.app/Contents/Resources/terminfo/77/wezterm", + target: "#{ENV.fetch("TERMINFO", "~/.terminfo")}/77/wezterm" zap trash: [ "~/.local/share/wezterm", + "~/.terminfo/77/wezterm", "~/Library/Saved Application State/com.github.wez.wezterm.savedState", ] end diff --git a/Casks/w/wezterm@nightly.rb b/Casks/w/wezterm@nightly.rb index 548a88c6aa194..5e6ab897e73fe 100644 --- a/Casks/w/wezterm@nightly.rb +++ b/Casks/w/wezterm@nightly.rb @@ -26,6 +26,8 @@ target: "#{HOMEBREW_PREFIX}/etc/bash_completion.d/wezterm" binary "#{appdir}/WezTerm.app/Contents/Resources/shell-completion/fish", target: "#{HOMEBREW_PREFIX}/share/fish/vendor_completions.d/wezterm.fish" + binary "#{appdir}/WezTerm.app/Contents/Resources/terminfo/77/wezterm", + target: "#{ENV.fetch("TERMINFO", "~/.terminfo")}/77/wezterm" preflight do # Move "WezTerm-macos-#{version}/WezTerm.app" out of the subfolder @@ -36,5 +38,8 @@ end end - zap trash: "~/Library/Saved Application State/com.github.wez.wezterm.savedState" + zap trash: [ + "~/.terminfo/77/wezterm", + "~/Library/Saved Application State/com.github.wez.wezterm.savedState", + ] end