Skip to content

Fix tmux lint: prevent false failure when tpm is not installed#84

Merged
jangroth merged 1 commit into
mainfrom
auto/issue-79-fix-tmux-lint-tpm-missing
May 17, 2026
Merged

Fix tmux lint: prevent false failure when tpm is not installed#84
jangroth merged 1 commit into
mainfrom
auto/issue-79-fix-tmux-lint-tpm-missing

Conversation

@jangroth

Copy link
Copy Markdown
Owner

Summary

  • run '~/.tmux/plugins/tpm/tpm' at the end of files/tmux/tmux.conf caused make lint to exit non-zero on fresh machines or CI where tpm is not yet installed, even though the config is otherwise valid.
  • Fix: embed || true inside the shell command string so tmux's run does not propagate a failure when the tpm binary is absent.

Change

-run '~/.tmux/plugins/tpm/tpm'
+run '~/.tmux/plugins/tpm/tpm || true'

Test plan

  • Run make lint on a machine without tpm installed — tmux: files/tmux/tmux.conf check should now pass.
  • Run make lint on a machine with tpm installed — behaviour unchanged, tpm loads normally.

Closes #79


Generated by Claude Code

The `run '~/.tmux/plugins/tpm/tpm'` at the end of tmux.conf caused
`make lint` to fail on fresh machines or CI where tpm is not yet
installed, even though the config itself is valid.

Adding `|| true` inside the shell command string ensures tmux's `run`
command does not propagate a non-zero exit when the tpm binary is
missing.

Closes #79
@jangroth jangroth merged commit 326ebd9 into main May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix tmux lint: tpm not installed causes false lint failure

2 participants