dylanaraps / neofetch

🖼️ A command-line system information tool written in bash 3.2+
MIT License
22.23k stars 1.67k forks source link

How to Install Neofetch by using Windows PowerShell for Windows 10? #1670

Closed 1457384613gh closed 3 years ago

1457384613gh commented 3 years ago

Screenshot

Screenfetch done, neofetch unknown. screenfetch

Description

Able to install screenfetch by using Windows PowerShell as I am, I truly don't know how to install Neofetch by using Windows PowerShell for Windows 10 and fail to install. I'm sorry but I wonder if you can give an instruction with illustration around how to install Neofetch by using Windows PowerShell for Windows 10.

User5959 commented 3 years ago

First type this into Power-shell to download Scoop if you haven't: Set-ExecutionPolicy RemoteSigned -scope CurrentUser iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

after it's downloaded type "scoop install neofetch" after it's installed type "scoop install git" and after that type "neofetch" into Power-shell and it should work.

1457384613gh commented 3 years ago

First type this into Power-shell to download Scoop if you haven't: Set-ExecutionPolicy RemoteSigned -scope CurrentUser iex (new-object net.webclient).downloadstring('https://get.scoop.sh')

after it's downloaded type "scoop install neofetch" after it's installed type "scoop install git" and after that type "neofetch" into Power-shell and it will work. Hope it helps

Thank you for helping me have a knowledge of "scoop".

PaoGon commented 3 years ago

also to run it automatically when you open a terminal you can run this command in an administrator mode in powershell: New-Item $profile -Type File -Force. then it will create a directory in the Documents and inside it there is a file called "Mircosoft.PowerShell_profile, then put "neofetch" then save.

jordonedavidson commented 3 years ago

I already have git installed (via git-bash) and git --version reports 2.20.1.windows.1. However; when I try to run neofetch i complains that it cannot find the app path for 'git'. It seems odd that I would need to install git again via scoop. I'd think that would cause conflicts all over the place.

NickDiVona commented 3 years ago

I already have git installed (via git-bash) and git --version reports 2.20.1.windows.1. However; when I try to run neofetch i complains that it cannot find the app path for 'git'. It seems odd that I would need to install git again via scoop. I'd think that would cause conflicts all over the place.

With Neofetch installed via Scoop and Git not installed via Scoop, you can do this.

carinavljko commented 3 years ago

Hey all after installation of neo fetch (win11 user btw) it seems to have deleted itself as scoop doesn't work as well as neo fetch image Edit: Yes i did install scoop before hand

Fr1tzBot commented 3 years ago

make sure ~/scoop exists, and make sure the neofetch file is installed at ~/scoop/shims/neofetch

wtfzambo commented 2 years ago

I'm kind of having the same problem but in windows 11.

I installed git with scoop using scoop install git-with-openssh and then scoop install neofetch, but I keep getting this error:

For reference, this is powershell 7.1

image

I understand that running scoop which git-with-openssh would break something, since git-with-openssh is the name of the package, but then it's installed as git, so scoop which git works.

image

theking2 commented 2 years ago
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
Scoop is already installed. Run 'scoop update' to get the latest version.

scoop update
scoop : The term 'scoop' is not recognized as the name of a cmdlet, function, script file, or operable program

scoop is not or no longer working.

wtfzambo commented 2 years ago
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
Scoop is already installed. Run 'scoop update' to get the latest version.

scoop update
scoop : The term 'scoop' is not recognized as the name of a cmdlet, function, script file, or operable program

scoop is not or no longer working.

@theking2 it's definitely working for me without issues: image

image

Did you set the execution policy as suggested here? image

theking2 commented 2 years ago

After I install Windows the first thing I do is Set-ExecutionPolicy Remote-Signed. It's second nature :-) I got it working somehow. Unfortunately I cannot tell you how. both scoop update the install of neofetch works

ghost commented 2 years ago

image Hello guys. Decided to install neofetch on Windows 10 LTSC. It gives an error, then I can’t install it normally, then the patch is not installed which is needed. Help. Did everything according to the instructions.

Fr1tzBot commented 2 years ago

@NerokPC You should try starting a new powershell window, running it from git bash, and maybe try restarting your computer.

Rygor83 commented 1 year ago

Good Afternoon, This is my workaround for windows cmd (i am not working with powershell, sorry), i hope it might help you to configure something similar for PowerShell: In cmd i run command: C:\Users\%username%\scoop\apps\git\current\bin\bash.exe C:\Users\%username%\scoop\apps\neofetch\current\neofetch

So i've created an alias in doskey: neofetch=C:\Users\%username%\scoop\apps\git\current\bin\bash.exe C:\Users\%username%\scoop\apps\neofetch\current\neofetch

so i can run neofetch with neofetch command.

rollingmoai commented 1 year ago

Try out https://github.com/fastfetch-cli/fastfetch; it's faster and available on Windows!

applesoda77 commented 11 months ago

Right after typing this command

iex (new-object net.webclient).downloadstring('https://get.scoop.sh') it gives me this error.

New-Item : Cannot find drive. A drive with the name 'D' does not exist. At line:601 char:13

I don't know how to fix this i tried every other installer in the github and it still gives me the same error