美文网首页
Iterm2的安装教程

Iterm2的安装教程

作者: 想做Reader和Coder | 来源:发表于2020-06-10 07:18 被阅读0次

参考文章:https://www.jianshu.com/p/ba08713c2b19
iTerm2下载地址:https://www.iterm2.com/downloads.html
或者homebrew安装:brew cask install iterm2

1、特点

  • 主题选择
  • 声明高亮
  • 自动填充建议
  • 隐藏用户名和主机名
  • 分屏效果等
    2、shell常用命令
    1、查看系统shell列表:cat /etc/shells
    2、切换shell:chsh -s /bin/zsh 配置文件:~/.bash_profile
    chsh -s /bin/bash 配置文件:~/.zshrc
    3、打开后顶部栏会显示当前的shell

3、主题配置
1、solarized: https://github.com/altercation/solarized
4、主题安装步骤
- 下载、解压、打开ITerm2、打开Preferences配置界面
- Profiles -> Colors -> Color Presets 在下拉列表中import,选中解压的文件,导入iterm2-colors-solarized 文件夹下的 Solarized Dark.itermcolors 文件
- 导入成功后,在Color Presets下选择Solarized Dark主题
5、配置ITerm2的背景图片
- 打开item2的Preferences的Profile -> Window -> Background image,选择一张自定义图片即可
- 背景图:http://wx1.sinaimg.cn/large/81f8a509gy1fnjdvkkwgoj20zk0m8ak8.jpg

常用命令

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 + l    清屏
ctrl + a    到行首
ctrl + e    到行尾
ctrl + f/b  前进后退
ctrl + p    上一条命令
ctrl + r    搜索命令历史

相关文章

网友评论

      本文标题:Iterm2的安装教程

      本文链接:https://www.haomeiwen.com/subject/ywtutktx.html