一安装item2
该操作最为简单不提供
二安装Oh-my-zsh
安装命令
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
卸载命令
uninstall_oh_my_zsh
三安装Meslo字体库
方式一 mac终端处理
# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
方式二 官网Meslo点击View raw 进行下载安装
配置item2(iTerm2>Preferences>Profiles>Text>Change Font)
四配置语法高亮zsh-syntax-highlighting
下载zsh-syntax-highlightingbrew install zsh-syntax-highlighting
通过 ll -a
查看所有文件包含隐藏文件
在.zshrc添加source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
参考地址:https://www.jianshu.com/p/246b844f4449
item2 使用rz sz进行上传下载
1安装lrzsz
brew install lrzsz
2安装脚本
cd ~git clone https://github.com/mmastrac/iterm2-zmodem.git
mv ~/iterm2-zmodem/iterm2-recv-zmodem.sh /usr/local/bin/iterm2-recv-zmodem.sh
mv ~/iterm2-zmodem/iterm2-send-zmodem.sh /usr/local/bin/iterm2-send-zmodem.sh
3在ITerm2中对应的profile中“Advance”->”Trigger”
Regular expression: rz waiting to receive.\*\*B0100
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-send-zmodem.sh
Instant: checked
Regular expression: \*\*B00000000000000
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-recv-zmodem.sh
Instant: checked