一般,Mac家自带的东西都很6,可是却不够炫,,,git
so...github
折腾第三方的东西吧~~shell
你见过这个样子的shell不 ~~ 开始折腾吧~~骚年curl
首先下载iterm2,两种方式:自个儿百度/谷歌 iterm2,在官网上下载安装包 or 在homebrew下载,在termal里使用 字体
brew cask install iterm2
然后,下载oh-my-zsh:url
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
安装powerline:spa
pip install powerline-status
安装melso字体,上GitHub(https://github.com/powerline/fonts/blob/master/Meslo%20Slashed/Meslo%20LG%20M%20Regular%20for%20Powerline.ttf),点击raw便可自动下载,然后点击下载好的文件,并安装便可。插件
并在iterm2的界面中修改字体,具体以下,打开iterm2,command + , 组合键打开偏好,选择profile,在font中选择所有字体,再选择Melso LG 便可;另,根据喜爱选择透明度,即在profile--window--transparency中拖动进度条,并勾选keep background color opaque.code
此时可切换iterm2的配色风格,blog
vi ~/.zshrc
将ZSH_THEME字段的值改成agnoster
而后就搞定了~~
以后是使用功能~~~:
下载字体高亮插件:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
以及自动补全插件:
git clone https://github.com/zsh-users/zsh-autosuggestions.git
并将两者加入到 ~/.zshrc中,
vi ~/.zshrc
修改