From ed0fe56e79690b7dca2dac6b432bd239ce46d913 Mon Sep 17 00:00:00 2001 From: JFLarvoire Date: Mon, 29 Jun 2020 18:17:37 +0200 Subject: [PATCH] Document how to install ag.exe for Windows using winget --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 4408f2c..9a88acf 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,20 @@ or Unofficial daily builds are [available](https://github.com/k-takata/the_silver_searcher-win32). +* winget + + winget install "The Silver Searcher" + + Notes: + - This installs a [release](https://github.com/JFLarvoire/the_silver_searcher/releases) of ag.exe optimized for Windows. + - winget is intended to become the default package manager client for Windows. + As of June 2020, it's still in beta, and can be installed using instructions [there](https://github.com/microsoft/winget-cli). + - The setup script in the Ag's winget package installs ag.exe in the first directory that matches one of these criteria: + 1. Over a previous instance of ag.exe *from the same [origin](https://github.com/JFLarvoire/the_silver_searcher)* found in the PATH + 2. In the directory defined in environment variable bindir_%PROCESSOR_ARCHITECTURE% + 3. In the directory defined in environment variable bindir + 4. In the directory defined in environment variable windir + * Chocolatey choco install ag