美文网首页
Windows中安装rip-grep

Windows中安装rip-grep

作者: p1uxtar | 来源:发表于2020-09-01 09:02 被阅读0次

因为一些原因,不得不大量使用Windows。那么在明知道要找的东西在某个文件夹,却不清楚具体位置在哪个文件的哪一行的时候,分外想念老王的color-rg

安装rip-grep时,却还有一个关键性的问题是,没有管理员权限。于是很多天以来压根就没尝试……

终于忍下住下载了Win版的ripgrep,却不知道怎么在Emacs里调用,看看READMD,Chocolatey和Scoop还都是第一次听说……

Scoop

查到这篇说,打开Powershell之后,Scoop可以这样安装:

set-executionpolicy remotesigned -scope currentuser

iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

当然必要的权限要给。然后 scoop install ripgrep 就可以了。

Chocolatey

Chocolatey的安装方法,说是要管理员权限(我就没试):

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

之后choco install就可以了。

相关文章

网友评论

      本文标题:Windows中安装rip-grep

      本文链接:https://www.haomeiwen.com/subject/bkvmsktx.html