Thursday, December 25, 2025

Using yazi on Windows

 Yazi is my favorite file manager on Linux. On Windows, however, I have been having trouble with file previewing and file opening. Today I asked Google Gemini about this and the answer was:

---

3. Important Windows Requirement: file

Yazi uses the file command to determine if a file is "text" or "image." Windows doesn't have this by default.

  • Recommendation: Install Git for Windows. It includes a file.exe utility.

  • Tell Yazi where it is by adding this to your Nushell env.nu (open with config env):

    Code snippet
    $env.YAZI_FILE_ONE = 'C:\Program Files\Git\usr\bin\file.exe'
---

This actually solved the problem.

Counter