跳转至

如何配置彩色化manpage页面

概要: 以macOS平台为例,使用most包让manpage有色彩输出

创建时间: 2022.10.10 22:42:42

更新时间: 2023.07.30 23:46:44

安装most

Bash
brew instal most

配置most

以 zsh 为例,在 ~/.zshrc 下新增

Bash
export PAGER="most"
然后刷新配置
Bash
source ~/.zshrc

效果展示

Before

image.png

After

image.png

参考