neofetch 项目地址:https://github.com/dylanaraps/neofetch
一、安装方法
https://github.com/dylanaraps/neofetch/wiki/Installation
- macOS (Homebrew)
brew install neofetch
- Ubuntu
sudo apt install neofetch
- CentOS
CentOS 7 安装 neofetch
二、使用方法
输入 neofetch ,即可看到如下效果
如果想每次打开终端都显示上面的效果,你只需要在 ~/.zshrc
中添加 neofetch
即可,重启终端后生效
说明:当你打开终端时,它会先加载一遍 zshrc 中的代码
三、neofetch配置文档
当我们运行Neofetch后,它会自动创建一个neofetch配置文件~/.config/neofetch/config.conf
,你可以在这个文件进行个性化配置
例如,显示当前网络的内网和公网ip,显示系统的硬盘大小,显示cpu的温度等
说明:Memory后面的百分比同样是在配置文件中设置的
其他:MacOS 终端 Iterm2 美化 zsh 配合 figlet + lolcat + fortune + cowsay命令实现酷炫效果