如何在不使用 sudo 的情况下安装 silversearcher-ag
这将在你的主目录($HOME/usr)中安装 ag(又名 the silver searcher),无需 sudo。
build_ag.sh
git clone -b 2.2.0 https://github.com/ggreer/the_silver_searcher.git
cd the_silver_searcher
./autogen.sh
./build.sh --prefix=$HOME/usr
make install如果你的 $PATH 中包含 $HOME/usr/bin,你现在可以像往常一样使用 ag。
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow