linux系统root安装,在Linux系统上安装broot的方法

本文介绍在Linux系统上安装broot的方法。broot是一个出色的工具,您可以利用它来完全更改在您喜欢的Linux终端(使用bash、zsh或fish)中导航目录树的方式。

来自预编译的二进制文件

wget https://dystroy.org/broot/download/x86_64-linux/broot

mv broot /usr/local/bin

sudo mv broot /usr/local/bin

sudo chmod +x /usr/local/bin/broot

使用Homebrew

如果您使用Homebrew,则可以使用brew install命令:

brew install broot

从源码/git

您需要安装Rust开发环境。

获取Canop/broot存储库,地址是https://github.com/Canop/broot,移至broot目录,然后运行:

git clone https://github.com/Canop/broot.git

cargo install --path .

启动broot时,它将检查br shell函数是否似乎已安装(或已被拒绝)。如果需要,并且如果所使用的shell似乎兼容(支持的shell是bash、zsh和fish),则broot要求允许注册该shell函数:

broot

Broot should be launched using a shell function (see https://github.com/Canop/broot for explanations).

Can I install it now? [Y n]

y

Writing br shell function in /home/tech/.local/share/broot/launcher/bash/1.

Creating link from /home/tech/.config/broot/launcher/bash/br to /home/tech/.local/share/broot/launcher/bash/1.

/home/tech/.bashrc successfully patched, you can make the function immediately available with

source /home/tech/.bashrc

/home/tech/.zshrc successfully patched, you can make the function immediately available with

source /home/tech/.zshrc

The br function has been installed.

You may have to restart your shell or source your shell init files.

Afterwards, you should start broot with br in order to use its full power

您现在已经安装了broot,重新启动终端,在终端上键入br:

br

15bc121641683ee7501afa9cc1d79fe5.png

相关主题

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值