Sunday, June 30, 2019

iTerm2

https://mp.weixin.qq.com/s/zbFQPdZ4Qh9fBrGP8C09Pg

Install Homebrew and Homebrew Cask

brew tap caskroom/cask

Install iTerm2

brew cask install iterm2

选择Iterm菜单 > Preferences > Profiles,
选择你在使用的 Profile(默认是Default),
在General标签页中的Working Directory部分中
选择Reuse previous seesion's directory。

iTerms2>Preferences>Profiles>Colors Tab
Open the Color Presets...>drop-down in the bottom right corner
Select Import... from the list
Select the Dracular.itermcolors file
Select the Dracular form Color Presets...

brew install zsh
echo $SHELL
which zsh

chsh -s /usr/bin/zsh
install Oh My Zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Plugin

git、z 、zsh-autosuggestions、zsh-syntax-highlighting


Control的常用组合键


移动类 :

Control-F 前进光标 (效果同右方向键)

Control-B 后退光标(效果同左方向键)

Control-F 前进光标 (效果同右方向键)

Control-B 后退光标(效果同左方向键)

Control-P 光标上移(效果同上方向键)

Control-N 光标下移(效果同下方向键)

Control-A 光标移动到行首

Control-E 光标移动到行尾



删除类:

Control-D 删除光标后面的一个字符

Control-H 删除光标前面的一个字符

Control-K 删除当前行光标以后的所有字符

Control-W 删除光标前的一个单词

Control-U 删除当前行的所有字符


其他类:

Control-T 交换光标两边的字符,

Control-L 清屏(仅适用于终端下)