Skip to content

Commit

Permalink
docs: fix Windows installation guide
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Mar 20, 2024
1 parent 2480a98 commit 54c7a56
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ Windows has been supported since Yazi v0.1.4, but it's still in the early stage,

### Requirements

Yazi relies on `file(1)` to detect the mime-type of the file, and the easiest and most reliable way to get it on Windows is to install Git for Windows and use the `file(1)` that comes with it.
Yazi relies on `file(1)` to detect the mime-type of the file, and the easiest and most reliable way to get it on Windows is to install Git for Windows and use the `file.exe` that comes with it.

1. Install Git for Windows by running [the official installer](https://git-scm.com/download/win), or through your package manager of choice.
2. To allow Yazi to find `file(1)`, add `<Git_Installed_Directory>\usr\bin\` to your `YAZI_FILE_ONE` environment variable, which differs depending on how you installed Git:
- If you installed Git with the installer, it would be `C:\Program Files\Git\usr\bin`.
- If you installed Git with Scoop, it would be `C:\Users\<Username>\scoop\apps\git\current\usr\bin`.
2. To allow Yazi to find it, add `<Git_Installed_Directory>\usr\bin\file.exe` to your `YAZI_FILE_ONE` environment variable, which differs depending on how you installed Git:
- If you installed Git with the installer, it would be `C:\Program Files\Git\usr\bin\file.exe`.
- If you installed Git with Scoop, it would be `C:\Users\<Username>\scoop\apps\git\current\usr\bin\file.exe`.
3. Restart your terminal.

This is **the ONLY way we recommend**. We do not recommend install `file` via Scoop or Chocolatey, since they cannot handle Unicode filenames (such as `oliver-sjöström.jpg`) properly and lack some required parameters.
Expand All @@ -191,8 +191,6 @@ scoop install yazi
scoop install unar jq poppler fd ripgrep fzf zoxide
```

Yazi on Scoop is maintained by community contributors, and may not always have the latest version available. You may need to check our [GitHub Releases](https://github.com/sxyazi/yazi/releases) page for the latest version.

## AOSC OS

```sh
Expand Down

0 comments on commit 54c7a56

Please sign in to comment.