Skip to content

Color man pages with bat#5491

Merged
dhh merged 1 commit intobasecamp:devfrom
spitfire05:patch-1
Apr 30, 2026
Merged

Color man pages with bat#5491
dhh merged 1 commit intobasecamp:devfrom
spitfire05:patch-1

Conversation

@spitfire05
Copy link
Copy Markdown
Contributor

This makes the man pages being syntax-highlighted with current Omarchy theme, thus improving on the overall consistency of the themes across the system.

Got the idea from CachyOS default fish config: https://github.com/CachyOS/cachyos-fish-config/blob/main/cachyos-config.fish

Example using Catppuccin theme:

screenshot-2026-04-29_20-54-43

Copilot AI review requested due to automatic review settings April 29, 2026 19:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves theme consistency by making man output go through bat for syntax-highlighted, theme-aligned rendering in shell sessions.

Changes:

  • Export MANROFFOPT="-c" to improve terminal-friendly roff output.
  • Export MANPAGER to pipe man output through col and bat using the man syntax.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dhh dhh merged commit d8a0deb into basecamp:dev Apr 30, 2026
3 of 4 checks passed
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.

3 participants