yazi官网
https://yazi-rs.github.io/docs/installation
按照教程
截止到文章发布前 yazi还不支持 apt 安装,因此需要采用源码编译的方式进行安装!
配置环境
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustup update
拉取代码进行编译
git clone https://github.com/sxyazi/yazi.git
cd yazi
cargo build --release
运行
./target/release/yazi
在.zshrc or .bashrc 中输入以下内容
alias yazi=/root/yazi/target/release/yazi
应该也可以丢在 /usr/bin 中 ,笔者没有尝试,有兴趣的小伙伴可以尝试一下。
运行效果