How to Install Neofetch on Windows

Getting Neofetch installed on Windows is easier than you might think. You simply need a PowerShell terminal and follow these steps:

  1. Enter this command into the PowerShell terminal that’ll give permission to run the next steps:
    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
  2. Run this command next to install Scoop:
    iwr -useb | iex
  3. Now that scoop is installed, it’s time to install neofetch:
    scoop install neofetch
  4. The last step to install neofetch is to install git:
    scoop install git

What’s awesome about Linux, is that with neofetch installed, combined with a quick bashsrc edit neofetch can start automatically with the terminal. Let’s make that possible with Windows by making a regedit change:

  1. You’ll want to run regedit by Win+R and typing regedit.
  2. Navigate to:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor
  3. Right click and select New > String Value with the name as AutoRun with a value of neofetch
  4. Once saved, just open command prompt as usual to see neofetch automatically run!

Unfortunately, neofetch won’t run in programs like Tabby automatically. A more robust solution is to create a CMD file that has all the things you’d like to autorun on a new command prompt session:

  1. Create a new file under home directory named autorun.cmd
  2. Fill autorun.cmd with:
    @echo off && C:\Users\%username%\scoop\apps\git\current\bin\bash.exe C:\Users\%username%\scoop\apps\neofetch\current\neofetch
    Save the file and go back and change the AutoRun value to C:\Users\yourusername\autorun.cmd.

That’s it! It’ll now function in CMD as well as programs like Tabby.