本帖最后由 athlonreg 于 2018-5-19 13:44 编辑
给大家分享一个macOS终端的美化脚本,自动识别本机ip、电量、运行时间等信息,详见下图
喜欢用英文的朋友可以直接终端执行
安装,上图中是我fork自obihann后汉化之后的效果,安装方法如下
- $ cd && git clone https://github.com/athlonreg/archey-osx
复制代码- $ sudo mv archey-osx/ /usr/local/
- $ sudo ln -s /usr/local/archey-osx/bin/archey /usr/local/bin/archey
复制代码
设置打开终端自启动 - $ echo archey >> ./.bashrc
- $ echo "[[ -s ~/.bashrc ]] && source ~/.bashrc" >> ./.bash_profile
- $ source ./.bashrc && source ./.bash_profile
复制代码如果你是oh-my-zsh用户 - $ echo archey >> ./.zshrc
- $ source ./.zshrc
复制代码更新 - $ cd /usr/local/archey-osx/ && git pull && cd
复制代码 |