Skip to content

Commit

Permalink
wezterm: Install terminfo
Browse files Browse the repository at this point in the history
The compiled terminfo entry was added to the app bundle (see
wez/wezterm#6538) so install it in
`~/.terminfo`.
  • Loading branch information
ddeville committed Jan 2, 2025
1 parent 5cea0b0 commit 7eda567
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Casks/w/wezterm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 6 additions & 1 deletion Casks/w/wezterm@nightly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 7eda567

Please sign in to comment.