rich
A toolbox for fancy output in the terminal. More information: https://github.com/Textualize/rich-cli.
- Display a file with syntax highlighting:
rich
- Add line numbers, and indentation guides:
rich --line-numbers --guides
- Apply a theme:
rich --theme
- Display a file in an interactive pager:
rich --pager
- Display contents from a URL:
rich --markdown --pager
- Export a file as HTML:
rich --export-html
- Display text with formatting tags, custom alignment, and line width:
rich --print "" -- --width
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
