(1) 下载 iterm2
https://iterm2.com/downloads.html
(2) MAC本地安装 lrzsz
brew install lrzsz
(3) 下载 iterm2-zmodem
https://github.com/aikuyun/iterm2-zmodem
(4) 将sh文件,拷贝到 /usr/local/bin/
(5) 文件设置为 0777
(6) 配置iterm2,Iterm2 -> Preferences -> Profiles -> Advanced -> Triggers -> Edit
Regular Expression: \*\*B0100
Action: Run Silent Coprocess
Parameters: /usr/local/bin/iterm2-send-zmodem.sh
Instant: 勾选
Regular Expression: \*\*B00000000000000
Action: Run Silent Coprocess
Parameters: //usr/local/bin/iterm2-recv-zmodem.sh
Instant: 勾选
(7) 关闭重启 iterm2
(8) 在远程服务器上,安装 lrzsz
yum install lrzsz
上传: rz
下载: sz
(9) iterm2 分屏快捷键
左右分屏:command + d
上下分屏:command + shift + d
切换分屏:command + option + 上/下/左/右 按键
更换主题
cd ~
git clone git@gitee.com:mirrors/oh-my-zsh.git
mv oh-my-zsh ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
zsh,发现有乱码
git clone https://github.com/powerline/fonts.git
cd fonts
sh install.sh
字体被安装到 /Users/{home}/Library/Fonts 下
iTerm2 设置字体:
字体设置 Meslo LG S DZ for Powerline
设置窗口类型
最后设置默认 zsh
idea terminal 设置 zsh