最近公司换了新电脑,拿到新电脑,最新配置一个好用的终端,顺便记录一下,方便自己,也分享一下 主要就两个 Item2,oh-my-zsh
Item2
iterm2.com/ 直接下载
设置一键唤醒,需要开启一下权限
然后下面咱么总结的一下 快捷键
标签
新建标签:command + t
关闭标签:command + w
切换标签:command + 数字 command + 左右方向键
切换全屏:command + enter
查找:command + f
分屏
垂直分屏:command + d
水平分屏:command + shift + d
切换屏幕:command + option + 方向键 command + [ 或 command + ]
查看历史命令:command + ;
查看剪贴板历史:command + shift + h
其他
清除当前行:ctrl + u
到行首:ctrl + a
到行尾:ctrl + e
前进后退:ctrl + f/b (相当于左右方向键)
上一条命令:ctrl + p
搜索命令历史:ctrl + r
删除当前光标的字符:ctrl + d
删除光标之前的字符:ctrl + h
删除光标之前的单词:ctrl + w
删除到文本末尾:ctrl + k
交换光标处文本:ctrl + t
清屏1:command + r
清屏2:ctrl + l
oh-my-zsh
配置主题样式
主题配置大全 找一个符合自己调性的主题 然后 找到咱们的配置文件 vim ~/.zshrc
然后
source ~/.zshrc
配置zsh-autosuggestions
可以根据历史记录,进行提示,
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
继续 vim ~/.zshrc 配置 plugins=(git zsh-autosuggestions)
source ~/.zshrc