linux中高亮显示文本的工具 -- bat

bat 的项目地址 https://github.com/sharkdp/bat

bat 是用rust 开发的, 在centos中安装bat需要rust的环境, 我们可以通过安装rust的包管理工具cargo来获得rust环境

wget  https://static.rust-lang.org/rustup.sh  通过下载并允许该脚本可以获取最新的rust和cargo

然后通过 cargo install bat  安装bat

原文地址:https://www.cnblogs.com/answercard/p/10087976.html