fix(zsh): make chafa draw images inside tmux #63
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
public/dotfiles-public!63
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/chafa-in-tmux"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Inside tmux,
chafa <image>printed nothing in Ghostty. tmux 3.8 advertises sixel (client_termfeaturesincludessixel), so chafa sends sixel images, and Ghostty doesn't support sixel.This adds
alias chafa='chafa -f symbols'when$TMUXis set, so chafa draws with text cells there. Outside tmux, chafa already picks Ghostty's kitty graphics by itself.Tested:
chafa -f symbols ~/Downloads/1.jpgin a tmux pane draws the image; plainchafathere prints blank lines.🤖 Generated with Claude Code