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

posted @ 2018-12-08 16:02  AnswerCard  阅读(677)  评论(0编辑  收藏  举报