From 9c9034f2f1789a00ca49c756c5aed5512b919127 Mon Sep 17 00:00:00 2001 From: Adrian Wyssmann Date: Mon, 30 May 2022 14:09:37 +0200 Subject: [PATCH] feat: add install docu for windows powershell As suggested in [this comment](https://github.com/denisidoro/navi/issues/40#issuecomment-1059836964) --- docs/installation.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/installation.md b/docs/installation.md index 88032fb..cfd931c 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -40,6 +40,31 @@ nix-env -iA nixpkgs.navi cargo install --locked navi ``` +#### Using [choco](https://github.com/rust-lang/cargo](https://community.chocolatey.org/packages/nav) + +For Windows user, using powershell + +1. Install package via choco + ```bash + choco install navi + ``` +2. Create `$env:USERPROFILE\AppData\Roaming\navi\config.yaml` and override `shell.command` as per [config_file_example.yaml](./config_file_example.yaml) + ``` + style: + tag: + color: cyan + comment: + color: grey + snippet: + color: white + + shell: + command: powershell + ``` + + Remark: Above example also adds custom colors for better readability in case you use standard blue for your Powershell + + #### Using install script ```bash