文章目录

  • General 通用
    • Startup 启动
    • Closing 关闭
    • Magic
    • Selection
    • Window
    • tmux
  • Appearance
    • General
      • 隐藏程序图标
      • theme 主题
      • tab bar location 选项卡栏位置
      • status bar location状态栏位置
    • Windows
    • Tabs
    • Panes
    • Dimming 调光
  • Profiles 配置文件
    • General
      • 自定义终端界面的标志
      • 自定义标签页标题
      • Shortcut Key
      • Command
        • Login Shell
        • Command
        • Custom Shell 配置 Shell 类型
        • Working Directory 设置工作目录
    • Colors
      • 自定义配色方案
    • Text 文本
      • Cursor 样式
    • Window
      • Settings for New Windows 新窗口的设置
        • Style 风格
        • Screen 屏幕
        • Space 空间
    • Terminal
      • Shell Integration.Shell 集成
    • Session 会话
    • Keys
      • Hotkey Window 设置热键
    • Advanced 高级
  • Keys 键映射
    • Navigation Shortcuts
    • Remap Modifiers 重新映射修改器
  • Pointer 指针 指示器

iTerm2 is a terminal emulator for Mac OS X that does amazing things.

官网:https://iterm2.com/index.html

General 通用

Startup 启动


Window restoration policy.窗口恢复策略
Only restore hotkey window.仅恢复热键窗口
Open profiles window.打开配置文件窗口

Closing 关闭


Confirm “Quit iTerm2”.确认“退出iTerm2”
even if there are no windows.即使没有窗口

Magic


Instant Replay uses 4MB per session.每个会话即时重放的大小是 4 MB
Save copy/paste and command history to disk.将复制/粘贴和命令历史记录保存到磁盘
GPU rendering.GPU渲染

Disable GPU renderer when disconnected from power.断开电源连接时禁用GPU渲染器
Maximize throughput(may increase latency).最大化吞吐量(可能增加延迟)
Prefer integrated to discrete GPU.集成GPU优于离散GPU

Selection


Copy to pasteboard on selection.选择时复制到粘贴板
Copied text includes trailing newline.复制的文本包括末尾的换行符
Applications in terminal may access clipboard.终端中的应用程序可以访问剪贴板
Triple-click selects entire wrapped lines.三次单击选择整个包裹线
Double-click performs smart selection.双击执行智能选择
Automatically enter copy mode on Shift + Arrow key with selection.按Shift+箭头键选择后自动进入复制模式
Characters considered part of a word.被认为是单词一部分的字符

Window


Smart window placement.智能窗口放置
Adjust window when changing font size.更改字体大小时调整窗口
Zoom maximizes vertically only.缩放仅垂直最大化。如果勾选这个,双击窗口标题栏时会垂直方向最大化,但是水平方向则没有缩放
Native full screen windows.本地全屏窗口
Separate window title per tab.每个选项卡都有单独的窗口标题。

tmux

Appearance

General

隐藏程序图标


Exclude from Dock and ⌘ -Tab Application Switcher.表示 iTerm2 程序图标不会出现在 Dock 和 Application Switcher 中。

theme 主题

regular.常规的
minimal.极简的

compact.紧凑的

light.明亮的
dark.深色的
light(high contrast).明亮且高对比度的
dark(high contrast).深色且高对比度的

tab bar location 选项卡栏位置


status bar location状态栏位置

auto-hide menu bar in non-native fullscreen.在非本地全屏时自动隐藏菜单栏

exclude from dock and tab application switcher.从 dock 和 <⌘-tab> 应用程序切换器中排除

… but only if all windows are hotkey windows.但前提是所有窗口都是热键窗口

Windows

show window number in title bar.在标题栏中显示窗口编号
show border around windows.显示窗口周围的边框
hide scrollbars.隐藏滚动条
disable transparency for fullscreen windows by default.默认情况下禁用全屏窗口的透明度
show line under title bar when the tab bar is not visible.当选项卡栏不可见时,在标题栏下显示行
show proxy icon in window title bar.在窗口标题栏中显示代理图标

Tabs

Show tab bar even when there is only one tab.即使只有一个选项卡,也显示选项卡栏
Preserve window size when tab bar shows or hides.在选项卡栏显示或隐藏时保留窗口大小。
Show tab numbers.显示选项卡标签编号
Tabs have close buttons.选项卡有关闭按钮
Show activity indicator.显示活动指示器
Show new-output indicator.显示新的输出指示器
Flash tab bar when switching tabs in fullscreen.全屏切换选项卡时闪烁选项卡栏
Show tab bar in fullscreen.全屏显示选项卡栏
Stretch tabs to fill bar.拉伸选项卡以填充栏
Support basic html tags in tab title.在选项卡标题中支持基本的 html 标签

Panes

Show per-pane title bar with split panes.使用拆分窗格显示每个窗格标题栏
Separate status bars per pane.每个窗格都有单独的状态栏
Separate background images per pane.每个窗格分别显示背景图像
Side margins.边距
Top & bottom margins.上下页边距

Dimming 调光


Dimming amount.调光量
Dim inactive split panes.将不活跃的拆分窗格调暗淡
Dim background windows.将窗口背景调暗淡
Dimming affects only text,not background.调暗只影响文本,而不影响背景

Profiles 配置文件

配置文件和窗口是一对一的关系,配置文件控制自己的窗口,窗口的布局、大小、样式、快捷键、光标形式

General

自定义终端界面的标志

Badge.印记、标志

自定义标签页标题

Shortcut Key

Command

Login Shell


打开终端界面的效果如下:

Command

选择 Command 其实和选择 Login Shell 没有区别,只是开启新终端界面时,少了一些信息输出而已,如下所示:

选择 Command 后打开新终端界面,就会出现上图所示的一行信息。

Custom Shell 配置 Shell 类型

Working Directory 设置工作目录

Colors


Foreground.前景色

Background.背景色

Selection.选中颜色

Selected text.选中文本的颜色

Badge.印记、徽章颜色

Bold.粗体文本的颜色

Tab Color.标签栏颜色

Brighten bold text.使粗体文本变亮

Minimum contrast.最小对比度

Underline color.下划线颜色

Cursor Colors.光标颜色

Cursor guide.光标指示条背景色

自定义配色方案

网上有现成的配色方案,下载地址:https://iterm2colorschemes.com/。

1.下载压缩包
2.解压缩
3.打开 iTerm2 的 Preferences,接着在 Profiles → Colors → Color Presets,找到 import,点击这个导入菜单项,选择解压好的主题目录下 schemes 目录

Text 文本

Cursor 样式

Underline 下划线
Vertical bar 竖杆,推荐该样式
Box 长方体

Blinking cursor.闪烁光标。打勾后光标会闪烁,建议打勾

Text Rendering.文本渲染

Draw bold text in bold font.以粗体字体绘制粗体文本

Use thin strokes for anti-aliased text.消除锯齿文本使用细笔划

Ambiguous characters are double-width.不明确的字符是双倍宽度

Anti-aliased.消除锯齿

Window


Transparency.透明度
Opaque.不透明
Transparent.透明的
Blur.模糊度
Small Radius.小半径

Background Image.背景图

mode.模式
stretch.拉长
tile.平铺
scale to fill.等比例铺满
scale to fit.缩放以适合屏幕大小

blending.混合

Force this profile to always open in a new window,never in a tab.强制此配置文件始终在新窗口中打开,而不是在选项卡中打开。如果勾选这个选项,每次打开新的命令行窗口时都会以新窗口打开,而不会以选项栏的方式打开

Settings for New Windows 新窗口的设置

Style 风格


Full-Width Bottom of Screen.屏幕底部全宽,让终端界面显示在屏幕底部,并占满整个宽度

Full-Width Top of Screen.屏幕顶部全宽,让终端界面显示在屏幕顶部,并占满整个宽度

Full-Height Left of Screen.屏幕左侧全高

Full-Height Right of Screen.屏幕右侧全高

Screen 屏幕

Screen width Cursor:用来判定哪个屏幕属于当前的工作空间,表示你的鼠标在哪,哪里就是当前的工作空间。

Space 空间

Current Spce:表示只显示在当前的工作空间,举个例子吧,假设你在当前屏幕打开了终端,你切换到下一个屏幕时它就不会跟到下一个屏幕。

Terminal

scrollback buffer.回滚缓冲区

scrollback lines.回滚缓冲区的回滚行数

unlimited scrollback.不限制回滚的行数,无限制地回滚

save lines to scrollback when an app status bar is present.当存在应用程序状态栏时,保存要回滚的行

save lines to scrollback in alternate screen mode.在交替屏幕模式下保存要回滚的行

terminal emulation.终端仿真、仿真终端、终端模拟器

report terminal type.报告终端类型,通常选择 xterm-256color

Enable mouse reporting.启用鼠标报告
Report mouse wheel events.报告鼠标滚轮事件
Disable session-initiated printing.禁用会话启动的打印
Disable save / restore alternate screen.禁用保存/还原备用屏幕
Disable session-initiated window resizing.禁用会话启动的窗口大小调整

Notification Center Alerts.通知中心警报

Shell Integration.Shell 集成

Shell集成由脚本组成,这些脚本帮助Shell与iterm2通信,以便它可以跟踪您正在运行的命令、当前目录和其他状态。了解更多

iTerm2 Utilities.iTerm2 实用工具
实用工具包括用于下载文件、内联显示图像等的脚本。了解更多


Internet-free Install. 互联网免费安装
Guided manual installation . No download required.指导手动安装。无需下载

Download and Run Installer.下载并运行安装程序
Downloads the latest version . Runs curl l bash.下载最新版本,运行命令 curl | bash

我点击按钮「Download and Run Installer」:

接着点击「Continue」:

For best results , install shell integration on all hosts you ssh in to.为了获得最佳效果,请在您通过ssh连接到的所有主机上安装shell集成

Insert newline before start of command prompt if needed.如果需要,请在命令提示符开始之前插入换行符

Show mark indicators.显示标记指示器

Session 会话


Undo can revive a session that has been closed for up to 5 seconds.撤销可以恢复关闭时间不超过5秒的会话
Automatically log session input to files in path.将会话输入记录到 xxx 文件中
Avoid repainting while cursor is hidden to reduce flicker while scrolling.避免在光标隐藏时重新绘制,以减少滚动时的闪烁

Status bar enabled.启用状态栏


可以配置状态栏:

Keys

Hotkey Window 设置热键

a hotkey opens a dedicated window with this profile.打开带有此配置文件的专用窗口的热键设置


when you press the hotkey bound to this profile a dedicated window will show or hide.each profile with a hotkey controls its own hotkey window.当您按下绑定到此配置文件的热键时,将显示或隐藏一个专用的窗口。每个具有热键的配置文件都控制其自己的热键窗口。

Pin hotkey window(stays open on loss of keyboard focus).固定住热键窗口(失去键盘焦点时依旧打开),建议打勾,否则光标点击其它地方终端界面就消失了,体验不好!终端窗口的出现和消失可以使用热键来控制

Automatically reopen on app reactivation.应用程序重新激活时自动重新打开

Animate showing and hiding.以动画形式显示和隐藏

Floating window.浮动窗口
floating windows overlap other windows and the dock,and other apps’Full Screen windows(if the hotkey Window’s Space is set to All Spaces).浮动窗口与其他窗口和dock以及其他应用程序的全屏窗口重叠(如果热键窗口的空间设置为所有空间)

On dock icon click.在dock图标上单击
Don’t do anything special.不做任何特别的事情
Show this hotkey window.显示此热键窗口
Show this hotkey window if no other window is open.如果没有其它窗口打开,则显示此热键窗口

Advanced 高级


Triggers watch for text matching a regular expression to arrive in a terminal session and then perform an action in response.触发器监视与正则表达式匹配的文本到达终端会话,然后执行响应操作

Keys 键映射


Cycle Tabs Forward.向前(即向右边)循环标签 Control + Tab
Cycle Tabs Backward.向后(即向左边)循环标签 Shift + Control + Tab
Scroll One Line Up.向上滚动一行,向前滚动一行 Command + ↑
Scroll One Line Down.向下滚动一行,向后滚动一行 Command + ↓


touch bar mitigations.触摸栏环节措施

haptic feedback when pressing esc.按 esc 键时的触觉反馈
Key click for esc key.关键点单击以获取 esc 关键点
Visual esc key indicator.可视化的 esc 关键点指示器

Navigation Shortcuts

Remap Modifiers 重新映射修改器


注:这个不需要随便改动,基本不会有人去修改这个东西的。

Pointer 指针 指示器


⌘ - Click opens filename / URL ( semantic history ).按住 ⌘ 时单击文件名或者 URL 打开文件或者网址(根据语义历史记录判断)
⌥ - Click moves cursor.单击移动光标
Three-finger tap emulates middle click.三指轻触模拟中击

Three-finger Swipe Down.三指向下滑动

iTerm2 for MacOS(终端模拟器/终端仿真器/命令终端工具)设置详解相关推荐

  1. Python必备基本技能——命令行参数args详解

    Python必备基本技能--命令行参数args详解 1. 效果图 2. 源码 2.1 简单命令行参数 2.1 轮廓检测源代码 参考 这篇博客将介绍一项开发人员.工程师和计算机科学家必备的技能--命令行 ...

  2. Linux Bash命令关于程序调试详解

    转载:http://os.51cto.com/art/201006/207230.htm 参考:<Linux shell 脚本攻略>Page22-23 Linux bash程序在程序员的使 ...

  3. linux中的su-命令的功能,linux su命令参数及用法详解(linux切换用户命令)

    linux su命令参数及用法详解(linux切换用户命令) 发布时间:2012-07-21 12:12:39   作者:佚名   我要评论 su的作用是变更为其它使用者的身份,超级用户除外,需要键入 ...

  4. linux 的中断 命令,linux skill命令参数及用法详解(linux中断进程执行命令)

    linux skill命令参数及用法详解(linux中断进程执行命令) 发布时间:2012-07-21 12:09:37   作者:佚名   我要评论 linux 冻结进程命令 skill 使用详解 ...

  5. top命令参数详解(linux top命令的用法详细详解)

    通过top命令可以有效的发现系统的缺陷出在哪里.是内存不够.CPU处理能力不够.IO读写过高. top命令输出长这样: top命令参数详解(linux top命令的用法详细详解) 以下解析一下各个字段 ...

  6. linux命令优先级设置,linux renice命令参数及用法详解(linux修改程序运行优先级命令)...

    linux renice命令参数及用法详解(linux修改程序运行优先级命令) 发布时间:2012-07-21 12:45:32   作者:佚名   我要评论 renice指令可重新调整程序执行的优先 ...

  7. linux top命令 动态查看进程详解

    文章目录 linux top命令 动态查看进程详解以及使用方法 top命令的输出,可分为上下两个部分 上面部分:整个系统的资源的使用状态 下面部分:单个进程的资源使用状态 上面部分详解: 第一行:由三 ...

  8. 【linux】Valgrind工具集详解(八):Memcheck命令行参数详解

    [linux]Valgrind工具集详解(五):命令行详解中不够全,在此专门针对Memcheck工具中的命令行参数做一次详细的解释. Memcheck命令行选项 –leak-check=<no| ...

  9. 【转】Linux命令工具 top详解

    Linux命令工具 top详解 top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器.top是一个动态显示过程,即可以通过用户按键来不 ...

  10. Shell test命令(Shell [])详解,附带所有选项及说明

    test 是 Shell 内置命令,用来检测某个条件是否成立.test 通常和 if 语句一起使用,并且大部分 if 语句都依赖 test. test 命令有很多选项,可以进行数值.字符串和文件三个方 ...

最新文章

  1. 傅里叶(FFT)+小波变换+数据压缩
  2. laravel中empty(),is_null() 以及isEmpty()
  3. 帮助你高效开发Ajax应用的超酷jQuery插件 - AjaxML
  4. 一年学遍吴恩达、李飞飞、周志华等16大精品课!(ML、CV、NLP一应俱全)
  5. ftp put 550 Access is denied
  6. csp认证多少分通过_一级结构工程师考试难不难?多少分通过?
  7. JavaScript数据结构——栈(Stack)
  8. hyper-v ubuntu 图形界面不流畅_ubuntu简单美化教程
  9. 语音识别(LSTM+CTC)
  10. Max Time-Delay Neural Networks
  11. MVC3升级到MVC4模型验证信息显示为英文问题及解决方案
  12. 创建项目连接错误_在不同项目下S7-1200主站模块和 S7-300 CP342-5通信的实现方法...
  13. HDU 5273 Dylans loves sequence【 树状数组 】
  14. 免费下载百度文库需下载券文件
  15. tilte和body标签
  16. SpringBoot应用接入Prometheus+Grafana
  17. 输出7和7的倍数,还有包含7的数字例如(17,27,37...70,71,72,73...)
  18. 用JAVA实现简单点餐系统
  19. 概率论:魏布斯分布Weibull cumulative distribution function
  20. jQuery的使用(每一步都有注释说明,结构清晰,非常适合初学者,结合实例,通俗易懂,附带jQuery安装方法)

热门文章

  1. java7和java8切换_切换表达式到Java吗?
  2. java web源代码_检测Java Web应用程序而无需修改其源代码
  3. valhalla 插件_Valhalla项目的价值
  4. jpa 使用jdbc_在JPA和JDBC中使用存储过程。 嗯,只要使用jOOQ
  5. openshift_OpenShift上具有NetBeans的Java EE
  6. 依赖管理和Maven
  7. 花痴流口水颜文字_流口水可执行模型
  8. java8 javafx_JavaFX技巧8:美丽深层
  9. Java将列表转换为数组,反之亦然
  10. guava缓存数据到本地_扩展Guava缓存以溢出到磁盘