看本文之前建議先看下知乎的這篇帖子
為什么說 zsh 是 shell 中的極品?
執(zhí)行命令和命令解釋
執(zhí)行命令:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
命令解釋:
sh -c: 執(zhí)行指定的命令
curl -fssl: 嘗試用 SSL 來進(jìn)行數(shù)據(jù)傳輸
note: oh my zsh安裝后建議在.zshrc文件里添加 source ~/.bash_profile
vi ~/.zshrc
source ~/.bash_profile
設(shè)置成功后界面:

image.png