iterm2

Iterm2 with tmux intergration not using keybindings from .tmux.conf

雨燕双飞 提交于 2019-12-23 10:28:35
问题 I have been using tmux in iTerm2 for a while now but I have not been using the tmux integration that now comes with iTerm2. I started looking at using the tmux intergration as it allows you to use the shell intergration inside tmux. The problem i am encountering is that after i do tmux -CC none of the key bindings inside my .tmux.conf work... I cant even get any of the defaults to work. I would really like to use tmux integration but cant unless i can get the key bindings in my .tmux.conf to

OS X终端中是否有任何方法可以逐字移动光标?

回眸只為那壹抹淺笑 提交于 2019-12-22 14:24:40
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我知道组合Ctrl + A跳转到当前命令的开头,而Ctrl + E跳转到结尾。 但有没有办法逐字逐句跳转,比如Alt + ← / →在Cocoa应用程序中呢? #1楼 实际上有一个更好的方法。 按住选项 (某些键盘上的alt )并按向左或向右箭头键按字键移动。 就那么简单。 选项 ← 选项 → 此外, ctrl e将带您到行尾,而ctrl a将带您到头。 #2楼 在 iterm2 的 Preferences> Profile> Keys下 ,单击 Key Mappings 下面的 + 并记录一个新的快捷方式。 对于 Action ,选择 Send Escape Sequence 并分别向后和向前键入 b 或 f 。 当我尝试为( Ctrl + ← )录制一个时,我在 键盘快捷键 字段中注意到箭头从未出现过。 事实证明我必须首先禁用默认mac的 系统偏好设置>键盘>快捷方式>任务控制 shorcuts以使事情正常工作,因为它们将覆盖iterm2的默认快捷方式。 对于标准终端应用程序也应如此。 #3楼 在Mac OS X上 - 以下键盘快捷键默认工作。 请注意,您必须使 Option 键像终端首选项中的 Meta 一样(在键盘选项卡下) alt(⌥) + F用单词跳转 F 前进 alt(⌥) + B用一个单词跳转

How to enable autocomplete in iTerm2

浪子不回头ぞ 提交于 2019-12-21 03:50:58
问题 Let's say I'm in my root directory, and I have a User folder that I can cd into. In my default Mac terminal, I can just type cd U + tab , and it autocompletes to cd Users/ . How do I get this to work in iTerm2? It used to work just fine in iTerm2, but I must have changed a setting somewhere that disabled it, and I cannot figure out how to get it back. 回答1: Autocomplete in iTerm2 activates by pressing cmd + ; 回答2: You can install bash-completion package to autocomplete by Tab key. Install bash

How to turn off word wrap in iTerm2?

六眼飞鱼酱① 提交于 2019-12-20 08:36:56
问题 How to turn off word wrap in iTerm2? Is there a specific command to do so or in the preferences? I am trying to avoid having the text run down to the next line. I would rather scroll side to side. 回答1: lifted directly from https://apple.stackexchange.com/a/210666/115119 Props to @michid Disable line wrapping: tput rmam Enable line wrapping: tput smam 回答2: It appears that iTerm2 does not have the ability to turn off word wrap. There is an open issue (iTerm2 issue #1790) reported to "Provide

ZSH iterm2 increase number of lines history

百般思念 提交于 2019-12-20 08:09:35
问题 Not sure if this is zsh, iterm2 or the interaction between them. Trying to change the number of recallable lines in the terminal - not the command history, the output history. In .zshrc I have : HISTFILE=~/.histfile HISTSIZE=100000 SAVEHIST=100000 This seems to be ignored =( Not sure of the correct term to google, "Terminal output history?" 回答1: It's not immediately obvious in the iTerm2 documentation on how to change it. open the iTerm2 preferences ⌘ + , select the Profiles tab then select

How can I turn off “scrolling the history” in iTerm2

大城市里の小女人 提交于 2019-12-20 08:01:26
问题 I have installed the new iTerm 2. It asked me in a yellow bar at the top if I'd like to enable a mouse feature. Unfortunately I don't remember the exact sentence anymore. By accident I approved. Now when I use the scroll wheel on the mouse in iTerm, it doesn't scroll the up anymore but instead it goes triggers the command history. Like if I would press the up-cursor. I couldn't find the right settings to turn that off again. Does anyone know where I can toggle this option? Thx for helping!

homebrew 使用心得

风流意气都作罢 提交于 2019-12-18 15:57:25
''' 安装anaconda 安装命令: brew search anaconda brew cask install anaconda 添加环境变量: vi ~/.bash_profile export PATH="usr/local/anaconda3/bin:$PATH" 刷新环境变量: source ~/.bash_profile 试用: conda list 后续: conda upgrade anaconda conda upgrade anaconda-navigator anaconda-navigator --reset conda upgrade anaconda-client conda upgrade -f anaconda-client 更改源请看USTC镜像站的帮助页面 查看环境变量: echo $PATH 编辑环境变量: sudo vi /etc/paths 替换bash为zsh 安装iterm2:brew search iterm2 brew cask install iterm2 安装git: brew search git brew install git 更换默认终端: chsh -s /bin/zsh(bash) 安装oh my zsh: sh -c "$(curl -fsSL https://raw.githubusercontent

Open file on IntelliJ from iTerm 2

谁说胖子不能爱 提交于 2019-12-18 15:12:22
问题 I have output in my iTerm like: File project/path/path/file.py:56:54 extra text information How I can open this file in IntelliJ with a single click? 回答1: IntelliJ has a command line features that you can check out here: https://www.jetbrains.com/help/idea/2016.2/working-with-intellij-idea-features-from-command-line.html iTerm as well enable launch a command line order when we use cmd and click over a file path pattern. You only have to go to iTerm Preferences, Profiles, Advanced, Semantic

Mac特色软件 3 – iTerm2

柔情痞子 提交于 2019-12-17 19:49:15
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> By docoder in 博客 , 学习 on 2014/04/29 上节介绍了 Mac特色软件Moom 。 这节我们介绍 iTerm2 。 虽然 mac 上的终端 Terminal 已经很好用了,但 iTerm 的功能依然更为强大,兼容性更好,并且支持256色。 1.下载 iTerm2 iTerm2 为免费软件,而且更新及时,这在mac平台并不多见。可在 这里 下载。 2. 使用 iTerm2 2.1. 设置快捷键 hotkey 开启 Hotkey Window。 iTerm2 最好用的地方,我觉得是它的 Hotkey Window 。在 Preferences ->Keys 配置如下图: 我配的是 hotkey 是 ⌥+空格,当然你可以配置其他快捷键。配置完后,按 hotkey (我的是⌥+空格),Hotkey Window 就会被调出来,无论你是在哪一个桌面,然后你就可以操作终端了,再按 hotkey 便会关闭 Hotkey Window,你便可以接着原来的操作继续了,真是方便快捷。而且,你还可以配置你的 Hotkey Window 的位置,透明度,模糊程度等,在 Preferences ->Profiles,左边选择 Hotkey Window,右边选择 Window 选项卡,如下图: 当然

Mac item2常用快捷键是什么?iterm2 快捷键大全

霸气de小男生 提交于 2019-12-17 19:42:16
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Mac item2常用快捷键是什么?iterm2 快捷键大全 作者:佚名 字体:[ 增加 减小 ] 来源:互联网 时间:12-29 14:35:21 我要评论 整理使用 iTerm 2 过程中得常用快捷键,Mac 原来自带的终端工具 Terminal 不好用是出了名的,虽然最近几个版本苹果稍微做了些优化,功能上,可用性方面增强不少,无奈有个更好用的 Iterm2 摆在那,基本上也就没有多少出场机会了! Iterm2,经常使用终端的同学肯定早就切换到这个东东上了,开源免费,和 zsh 搭配差不多已经取代 Terminal + bash 成了 Mac 上终端工具的标准配置。 (iterm 2 快捷键) 标签 新建标签:command + t 关闭标签:command + w 切换标签:command + 数字 command + 左右方向键 切换全屏:command + enter 查找:command + f 分屏 垂直分屏:command + d 水平分屏:command + shift + d 切换屏幕:command + option + 方向键 command + [ 或 command + ] 查看历史命令:command + ; 查看剪贴板历史:command + shift + h 其他 清除当前行