MAC 终端美化-给终端一点颜色

发布时间:2021-06-22 13:09:00
更新时间:2021-09-26 19:07:22
文章作者:ZHUANGZHUANG

可能没什么用,但是很花哨

可以很菜,但是一定要骚

毕竟,帅是一辈子的事

  • neofetch 显示系统信息(Linux|MacOS|Windows|iOS|Android)
# https://github.com/dylanaraps/neofetch
brew install neofetch
neofetch

截屏2021-06-22 10.55.26

  • screenfetch 显示系统信息(Linux)
# https://github.com/KittyKatt/screenFetch
brew install screenfetch
screenfetch

截屏2021-06-22 11.09.21

截屏2021-06-22 11.10.23

  • ufetch 显示系统信息(Linux)
# https://gitlab.com/jschx/ufetch
git clone https://gitlab.com/jschx/ufetch.git
sudo cp ufetch/ufetch-macos /usr/local/bin
sudo chmod +x /usr/local/bin/ufetch-macos

# 每次登陆 shell 自动运行
echo "clear && source /usr/local/bin/ufetch-macos" >> ~/.zshrc

截屏2021-06-22 11.13.54

  • ccat 带颜色的 cat
# https://github.com/owenthereal/ccat
brew install ccat

# 使用 ccat 代替 cat
echo "alias cat='ccat'" >> ~/.zshrc

截屏2021-06-22 11.20.49

  • bat 颜色的 cat
# https://github.com/sharkdp/bat
brew install bat

# 使用 bat 代替 cat
echo "alias cat='bat'" >> ~/.zshrc

截屏2021-08-12 下午9.55.08

  • lolcat 渐变色 cat
# https://github.com/busyloop/lolcat
# https://github.com/jaseg/lolcat
brew install lolcat
ufetch-macos | lolcat

# 每次登陆 shell 自动运行
echo "clear && source /usr/local/bin/ufetch-macos | lolcat" >> ~/.zshrc

截屏2021-06-22 11.24.12

  • ag 查找字符串,代替 grep
# https://github.com/ggreer/the_silver_searcher
brew install ag
ag hello

截屏2021-06-22 12.21.33

  • duf 查看磁盘信息
# https://github.com/muesli/duf
brew install duf
duf -only local

截屏2021-06-22 11.27.14

  • glow 在终端里阅读 Markdown
# https://github.com/charmbracelet/glow
brew install glow
glow -p README.md
​​​​​​​‌​‌​‌‌‌​‍​​​​‌​‌​​‌​​‌‌​‍​‌​‌​‌‌‌‌‌‌​​‌​‍​​​​‌‌​​​​​‌‌‌‌‍​​​​​​​​‌‌‌​​‌​‌‍‌​‌​​‌​‌‍‌​‌‌​‌‌‌‍‌​‌​‌​‌​‍‌​‌‌‌‌‌​‍‌​‌‌​​​‌‍‌​‌‌‌​​​‍‌​‌​​‌​‌‍‌​‌‌​‌‌‌‍‌​‌​‌​‌​‍‌​‌‌‌‌‌​‍‌​‌‌​​​‌‍‌​‌‌‌​​​‍‌​‌​​​‌‌‍‌​‌​​​‌‌‍​‌​‌‌​​​‌‌​​​​​‍​​‌‌​‌​​‌‌‌‌​​​‍​​‌​‌‌‌‌‌‌‌‌​​​‍​‌‌​​‌‌‌​‌‌​​‌‌‌‍​​​​​​​​‌‌‌​​‌​‌‍‌​‌‌​​‌​‍‌​‌‌‌‌‌​‍‌​‌‌‌‌​​‍‌‌​‌‌‌‌‌‍​​​​​​‌​​‌‌​‌‌‌‍​​​​‌​‌​​​‌​​​​‍​​​​​​​​‌‌‌​​​‌‍​‌​‌‌​​‌‌‌​‌​​‌‍‌‌​‌​​‌​‍​​​​​​‌​​‌​​‌‌​‍​​​​​​‌​​‌‌​‌‌‌‍​​​​‌​‌​​​‌​​​​‍​‌‌​​​‌‌‌‌‌‌‌‌‌‍​​​‌‌‌‌​‌​​​‌‌​‍​‌‌​​‌‌‌​‌‌​​​‌‌‍​‌‌‌‌‌​‌‌​​​‌‌​‌‍‌​‌​​​‌‌‍‌​‌​​​‌‌‍​‌​‌‌​​​‌‌​​​​​‍​​‌‌​‌​​‌‌‌‌​​​‍​‌‌​​​​‌​‌​​​‌‌‍​‌‌‌‌‌‌‌‌‌‌‌‌​‌​‍​​​​​​​​‌‌‌​​‌​‌‍‌​‌​​‌‌​‍‌​‌‌‌​‌‌‍‌​‌​​‌​‌‍‌‌​​‌‌‌​‍‌‌​​‌‌​‌‍‌‌​​‌‌​​‍‌‌​​‌​‌‌‍‌‌​​‌​‌​‍‌‌​​‌​​‌‍‌​‌​​​‌‌‍‌​‌​​​‌‌‍​‌​‌‌​​​‌‌​​​​​‍​​‌‌​‌​​‌‌‌‌​​​‍​‌​‌​​​‌‌​​‌‌‌‌‍​‌​‌​​​‌​‌‌‌‌‌‌‍​​​​​​​​‌‌‌​​‌​‌‍‌​​‌​‌‌‌‍‌​​​‌​‌‌‍‌​​​‌​‌‌‍‌​​​‌‌‌‌‍‌​​​‌‌​​‍‌‌​​​‌​‌‍‌​‌​​​‌‌‍‌​‌​​​‌‌‍‌​​​​‌​‌‍‌​​‌​‌‌‌‍‌​​​‌​‌​‍‌​​‌‌‌‌​‍‌​​‌​​​‌‍‌​​‌‌​​​‍‌​​​​‌​‌‍‌​​‌​‌‌‌‍‌​​​‌​‌​‍‌​​‌‌‌‌​‍‌​​‌​​​‌‍‌​​‌‌​​​‍‌‌​‌​​​‌‍‌​​‌​‌‌​‍‌​​‌​​​​‍‌​‌​​​‌‌‍‌‌​​‌‌​‌‍‌‌​​‌‌‌‌‍‌‌​​‌‌​‌‍‌‌​​‌‌‌​‍‌​‌​​​‌‌‍‌‌​​‌‌‌‌‍‌‌​​‌​​‌‍‌​‌​​​‌‌‍‌‌​​‌‌​‌‍‌‌​​‌‌​‌‍‌​‌​​​‌‌‍‌​​‌​​‌​‍‌​​‌‌‌‌​‍‌​​‌‌‌​​‍‌‌​‌​​‌​‍‌​​‌‌‌​​‍‌​​‌​​​​‍‌​​‌​​‌​‍‌​​‌​​‌​‍‌​​‌‌‌‌​‍‌​​‌​​​‌‍‌​​‌‌​‌‌‍‌​​​‌‌​​‍‌‌​‌​​​‌‍‌​​‌​‌‌‌‍‌​​​‌​‌‌‍‌​​‌​​‌​‍‌​​‌​​‌‌

截屏2021-06-22 11.30.24

  • lsd 带图标的 ls
# https://github.com/Peltoche/lsd
brew install lsd

echo "alias ls='lsd'" >> ~/.zshrc
echo "alias ll='lsd -l'" >> ~/.zshrc
echo "alias la='lsd -a'" >> ~/.zshrc
echo "alias tree='lsd --tree'" >> ~/.zshrc

截屏2021-06-22 11.37.59

  • httpstat 代替 curl
# https://github.com/reorx/httpstat
brew install httpstat
pip3 install httpstat
httpstat https://zhuangzhuang.io

截屏2021-06-22 12.23.50

  • jq 解析 json
# https://stedolan.github.io/jq/
# https://github.com/stedolan/jq

cat frpc.json | jq --tab

截屏2021-06-22 12.31.57

  • shyaml 解析 yaml
# https://github.com/0k/shyaml
brew install shyaml

cat lsd/.travis.yml | shyaml get-value language

截屏2021-06-22 12.41.29

  • mycli MySQL 客户端(支持Tab)
# https://www.mycli.net/
brew install mycli

docker pull --platform=linux/x86_64 mysql:5.7.33
docker run --platform=linux/x86_64       \
           --name mysql                  \           
           -e MYSQL_ROOT_PASSWORD=123456 \           
           -p 3306:3306 -d mysql:5.7.33
           
mycli -h'127.0.0.1' -P'3306' -u'root' -p'123456'

截屏2021-06-22 12.54.48

  • bpytop 终端资源监控器(python)
# https://github.com/aristocratos/bpytop
brew install bpytop

bpytop

截屏2021-06-22 12.06.57

  • bashtop 终端资源监控器(bash)
# https://github.com/aristocratos/bashtop
bashtop

# 甚至可以这样,emmmm,有点晕
bashtop | lolcat

截屏2021-06-22 12.11.48

  • gtop 终端资源监控器(nodejs)
# https://github.com/aksakalli/gtop
npm install gtop -g

gtop

截屏2021-06-22 12.13.43

  • htop 终端资源监控器(c)
# https://htop.dev/
# https://github.com/htop-dev/htop
brew install htop

# 上次中挖矿病毒,ps 和 top 篡改隐藏进程,用 htop 查出来了
htop

截屏2021-06-22 12.01.52

  • lazydocker docker 管理(用了很久我才知道他支持鼠标,支持鼠标,支持鼠标!!!)
# https://github.com/jesseduffield/lazydocker
brew install lazydocker

lazydocker

截屏2021-06-22 12.15.11

  • pm2 进程管理工具
# https://pm2.keymetrics.io/
npm install pm2 -g

pm2 start frpc.json
pm2 ls
pm2 monit

截屏2021-06-22 13.02.33

截屏2021-06-22 13.03.45


暂时就写这么多,什么时候发现好玩的在更新

已有 17 条评论
  1. 阿永 阿永     Windows 10 /    Google Chrome

    好东西值得收藏

    1. ZHUANGZHUANG ZHUANGZHUANG     MacOS /    Safari

      每次都只有你一条回复,我好尴尬啊😭

      1. 阿永 阿永     iPhone /    Google Chrome

        懂了,下次不留言了👻

      2. 阿永 阿永     iPhone /    Google Chrome

        懂了,下次不留言了👻

      3. 阿永 阿永     iPhone /    Google Chrome

        懂了,下次不留言了👻

      4. 阿永 阿永     iPhone /    Google Chrome

        懂了,下次不留言了👻

      5. 阿永 阿永     iPhone /    Google Chrome

        懂了,下次不留言了👻

      6. 阿永 阿永     iPhone /    Google Chrome

        懂了,下次不留言了👻

  2. 阿永 阿永     iPhone /    Safari

    卡了,我擦

    1. ZHUANGZHUANG ZHUANGZHUANG     MacOS /    Safari

      哈哈哈,可能有BUG,我也遇见过

  3. 啊啊 啊啊     Windows 10 /    Google Chrome

    好好弄弄,。。一堆404啊

    1. ZHUANGZHUANG ZHUANGZHUANG     MacOS /    Safari

      什么 404 了?😳

  4. zf zf     MacOS /    Google Chrome

    楼主用的什么终端工具呀?

    1. ZHUANGZHUANG ZHUANGZHUANG     iPhone /    Safari

      iTerm

      1. zf zf     MacOS /    Google Chrome

        zsh用的哪个主题呀,很漂亮,想借鉴一下。

        1. ZHUANGZHUANG ZHUANGZHUANG     iPhone /    Safari
          1. zf zf     MacOS /    Google Chrome

            谢谢楼主~~

撰写评论