是什么 ? | : | a cat clone with syntax highlighting and Git integration. |
开发语言 | : | Rust |
源码仓库 | : | https://github.com/sharkdp/bat |
操作系统 | 包管理器 | 安装命令 |
---|---|---|
All | cargo | cargo install --locked bat |
Windows | scoop | scoop install bat |
Windows | Chocolatey | choco install -y bat |
macOS | HomeBrew | brew install bat |
GNU/Linux | HomeBrew | brew install bat |
apt | sudo apt-get install -y bat | |
CentOS | yum | sudo yum install -y bat |
dnf | sudo dnf install -y bat | |
openSUSE | zypper | sudo zypper install -y bat |
Alpine Linux | apk | sudo apk add bat |
pacman | sudo pacman -Syyu --noconfirm | |
Gentoo Linux | Portage | sudo emerge sys-apps/bat |
step1、安装依赖
所有时 | Terminal + Shell |
下载时 | cURL |
解压时 | tar + gzip |
运行时 |
|
step2、使用curl命令下载编译好的二进制文件 ()
curl -L -o bat-0.18.0.tar.gz https://github.com/sharkdp/bat/releases/download/v0.18.0/bat-v0.18.0-x86_64-unknown-linux-gnu.tar.gz
step3、使用tar解压压缩包
tar vxf bat-0.18.0.tar.gz -C /usr/local/bin