WorkFlow
本文最后更新于:2025年5月31日 下午
Upgrade PowerShell
Execute the following command in PowerShell
1 |
|
get the output like this
1 |
|
then execute the following command
1 |
|
or just goto official website to get the latest version
Scoop
Execute the following commands in PowerShell as Administrator
1 |
|
then install git with scoop
1 |
|
setup git user.name and user.email
1 |
|
Yazi
1 |
|
goto C:\Users\<Username>\Documents\PowerShell\Microsoft.PowerShell_profile.ps1
, if it doesn’t exist, create it
append the following lines to the file
1 |
|
goto C:\Users\<Username>\AppData\Roaming\yazi\config\yazi.toml
, if it doesn’t exist, create it
append the following lines to the file
1 |
|
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.
- Install Git for Windows by running the official installer, or through your package manager of choice.
- To allow Yazi to use
file(1)
, add <Git_Installed_Directory>\usr\bin\file.exe to yourYAZI_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
.
- Restart your terminal.
Neovim
1 |
|
Goto C:\Users\<Username>\AppData\Local
, clone the repo here
1 |
|
Windows Terminal
Modify settings.json
1 |
|