本文介绍在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 参考:在Linux下安装Homebrew(Linuxbrew)的方法。
从源码/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
相关主题 |