myblog

neofetch系统信息查看

2021-05-25

每天摸鱼刷一刷github。

neofetch,系统信息查看

neofetch 是一个显示系统信息的命令行工具,用bash3.2写的

可以显示操作系统信息,软硬件信息,背景可以用ascii码显示,也可以用图像来更换背景

支持150多种操作系统,从linux到windows,minux,aix,haiku

windows需要先安装scoop这个环境

scoop是Windows的命令行包管理器,类似于Mac系统的Homebrew

需要有PowerShell 5或以上版本,包括PowerShell Core和.NET Framework 4.5或以上版本

安装命令是

iwr -useb get.scoop.sh | iex

Windows在powershell上面还要提前开策略豁免

Set-ExecutionPolicy RemoteSigned -scope CurrentUser

之后默认给安装到了C:\Users\用户名\scoop目录下

然后执行

scoop install neofetch

自动下载安装好了scoop

之后运行neofetch

报错提示找不到git

Could not find app path for 'git'.

Join-Path : 无法将参数绑定到参数“Path”,因为该参数是空值。

所在位置 C:\Users\user\scoop\apps\neofetch\current\neofetch.ps1:1 字符: 15

搜索错误,需要修改neofetch.ps1这个文件第一行为

& $(join-path $Env:Programfiles 'Git\bin\bash.exe') $(join-path $psscriptroot 'neofetch') @args

运行,正常

截图如下

github页面:https://github.com/dylanaraps/neofetch

参考资料

来源:https://github.com/dylanaraps/neofetch

scoop:https://scoop.sh/

friend link

speed test

bing

guge