Just some necessary aspects in MS-Windows OS :)

How to Install Ripgrep?

Ripgrep recursively searches directories for a regex pattern.

I mainly use it in emacs. It is so easy to install in linux, but more complex in Windows -_-

Install Chocolatey1

Install with cmd.exe, run the following command:

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString(''))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

Or install with PowerShell.exe, run the following command:

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString(''))

Then, restart your terminal!!

Install Ripgrep with Chocolatey2

Open your terminal (powershell or cmd), then run the following command:

choco install ripgrep -y

Just waiting for it done, then use it by rg <regex pattern string> :)