可能很多人都遇到过类似的问题:使用 iTerm2 时打开了多个窗口,却在改动配置后需要在每个窗口依次执行 source 指令以激活改动的配置。

其实,iTerm2 支持向多窗口(当前打开的所有窗口)同时输入相同的指令。只需要输入快捷键 ⌘(command) + ⇧(shift) + i。默认会跳出告警提示窗口:

可以勾选 Suppress this message permanently 取消告警,并 OK 确认。这时每个窗口右上角都会出现图标 表示当前已激活向所有窗口输入指令。

关闭该功能的方式是再次输入快捷键 ⌘(command) + ⇧(shift) + i 即可。

iTerm 常用快捷键

  • ⌘(command) + t 新建tab页
  • ⌘(command) + d 水平分屏
  • ⌘(command) + 左右方向键 切换标签
  • ⌘(command) + ; 查看历史命令
  • ⌘(command) + ⇧(shift) + d 垂直分屏
  • ⌘(command) + ⇧(shift) + e 显示时间线
  • ⌘(command) + ⇧(shift) + h 查看剪贴板历史

  • ctrl + a 行首
  • ctrl + e 行尾

16 对 “Iterm2多窗口同时输入命令”的想法;

  1. Its such as you read my mind! You appear to know so much about this, like you wrote the guide in it
    or something. I think that you can do with some p.c. to force the
    message home a bit, however other than that,
    this is excellent blog. A fantastic read. I’ll certainly be back.

  2. I feel that is one of the such a lot significant information for me.
    And i’m glad reading your article. But want to commentary on some basic things,
    The website taste is wonderful, the articles is truly nice : D.
    Good job, cheers

  3. Hello superb website! Does running a blog such as this require a large amount of work?
    I have virtually no expertise in coding however I
    was hoping to start my own blog soon. Anyway, if you
    have any recommendations or tips for new blog owners please
    share. I know this is off topic but I just had to ask.
    Appreciate it!

  4. You are so awesome! I do not suppose I’ve read something like this before.
    So good to discover another person with a few unique thoughts on this subject matter.

    Really.. thanks for starting this up. This site is one thing that’s needed on the
    web, someone with some originality!

  5. Excellent items from you, man. I’ve remember your stuff previous to and you are simply too wonderful.
    I really like what you’ve bought right here, really like what you are saying and the way in which by which you are saying it.

    You’re making it enjoyable and you continue to take care of to
    stay it wise. I cant wait to read much more from you. This is really a great
    web site.

  6. I have been browsing online more than three hours lately,
    but I by no means found any attention-grabbing article like yours.

    It’s beautiful worth sufficient for me. In my opinion, if all site owners and bloggers
    made just right content material as you did, the internet will likely be much more useful than ever before.

  7. Nice post. I was checking continuously this blog and I
    am impressed! Extremely helpful info specifically the last part
    🙂 I care for such information a lot. I was looking for
    this certain info for a very long time. Thank you and
    good luck.

  8. I’m truly enjoying the design and layout of your site.
    It’s a very easy on the eyes which makes it much
    more pleasant for me to come here and visit more often. Did you hire out a developer to create your theme?
    Great work!

发表评论

电子邮件地址不会被公开。 必填项已用*标注