iterm2

Arrow keys no longer work in Python shell after upgrading Mac OS to Sierra

送分小仙女□ 提交于 2019-12-04 08:55:27
问题 I'm using zsh, iTerm2 (3.0.9), and pyenv (1.0.2) with pyenv global set to 3.5.2. In the Python shell, the up and down arrow keys used to work, to access the previous commands in the history. But now after upgrading to OSX 10.12, instead it shows control characters. For example up arrow displays: ^[[A I've tried installing readline as suggested in Seeing escape characters when pressing the arrow keys in python shell but that didn't help. I don't have the PYTHONSTARTUP variable but didn't used

快捷使用 Iterm2 连接SSH

我的未来我决定 提交于 2019-12-04 04:17:35
1,配置iterm2 > Preferences.. > Profiles > 填写:name : 别名 ; Command : expect /Users/jerryxu/wwwroot/cache/bin/ssh_jwy 2,/Users/jerryxu/wwwroot/cache/bin/ssh_jwy 内容如下: #!/usr/bin/expect -f set port <port> set user <user> set host <ip> set password <pass> set timeout -1 spawn ssh -p $port $user@$host expect "*assword:*" send "$password\r" interact expect eof user 用户名 pass 密码 port 端口 ip 服务器ip或域名 3,右键iterm2 new tab/new window 打开别名连接。完成; 以上只适用于mac 使用配置; 如其它系统使用请对其配置相应更改即可; 当我们希望使用优秀的网络HTTP来代理连接ssh时: 首先安装 corkscrew brew install corkscrew 然后查看 corkscrew 位置: which corkscrew 得到的 corkscrew Path 后。如:/usr

Vim colors too bright (terminal)

こ雲淡風輕ζ 提交于 2019-12-03 21:40:33
I have a problem with Vim and iTerm2, the colors are too bright (for ALL themes). It works with both Terminal.app and MacVim, so I guess it must be some setting in iTerm2 I've completely missed. The picture below shows you the difference (iTerm2 to the left, MacVim / Terminal.app to right): What I'm using: iTerm2: Build 1.0.0.20130624 Terminal type: xterm-256 Shell: zsh 5.0.2 Vim: version 7.3.666 OS X: 10.7.5 Do you guys have any idea what I'm missing? You shouldn't compare colorschemes in GUI Vim and in CLI Vim: the number of colors that can be used in both contexts is very different and it

vim - dim inactive split panes

老子叫甜甜 提交于 2019-12-03 15:03:17
问题 If you're familiar with the iTerm2 application, you'll know that you can split views similar to vim, and the inactive views are "dimmed." I usually work in vim with three vertical split views and it would be nice to dim the inactive ones by setting the background color to a darker tone, for example. Is there a way to do this? 回答1: I have come up with the following solution (using 'colorcolumn' and unsetting 'cursorline'): " Dim inactive windows using 'colorcolumn' setting " This tends to slow

How to enable autocomplete in iTerm2

谁说我不能喝 提交于 2019-12-03 12:21:54
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. Autocomplete in iTerm2 activates by pressing cmd + ; You can install bash-completion package to autocomplete by Tab key. Install bash-completion with brew In Iterm 2 , you can activate Autocomplete by pressing command ⌘ + ; 来源: https:/

Can't see what I'm typing in iterm2

狂风中的少年 提交于 2019-12-03 11:36:21
问题 Periodically, I'll run rspec (though I don't know if its specific to that) and suddenly, I can't see what i'm typing. I have to close that iterm2 window out and open a new one. Then that will work fine for a while and iterm2 will hide my typing again. I can always see responses to my commands, just not my typing or cursor. It also does this weird stacking thing where it pushes each new line farther to the right. Update!: I tried the suggestion to type in stty echo and can see my text, but the

Can Terminal.app be made to respect ANSI escape codes?

限于喜欢 提交于 2019-12-03 06:47:48
问题 I notice that with the TERM environment variable set to either xterm or xterm-256color that Mac OS X’s Terminal.app utility respects most ANSI escape codes, as least when those escape codes pertain to changing text color. For example: echo -e "\033[0;31mERROR:\033[0m It worked" Produces: However, I’m more interested in the cursor location manipulation functionality afforded by ANSI escape codes. Unfortunately, that type of code doesn’t seem to work too well in Terminal.app, from what I’ve

Can't see what I'm typing in iterm2

我的未来我决定 提交于 2019-12-03 02:04:16
Periodically, I'll run rspec (though I don't know if its specific to that) and suddenly, I can't see what i'm typing. I have to close that iterm2 window out and open a new one. Then that will work fine for a while and iterm2 will hide my typing again. I can always see responses to my commands, just not my typing or cursor. It also does this weird stacking thing where it pushes each new line farther to the right. Update!: I tried the suggestion to type in stty echo and can see my text, but the weird indention remains: Typing "stty sane" Fixes this for me. Clean up this and many other issues

How to export iTerm2 Profiles

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I needed to reformat my computer and now I'm having trouble copying the settings/profiles over. I copied the files in ~/Library/Application\ Support/iTerm/ I also copied ~/Library/Preferences/com.googlecode.iterm2.plist but it keeps giving me this error: Failed to load preferences from custom directory. Falling back to local copy. Missing or malformed file at "/ com.googlecode.iterm2.plist" I also tried saving the profile in a directory so I could send it but it doesn't work. Here's the location: and here's the output: Failed to copy

iTerm2 slide down over full screen app

蓝咒 提交于 2019-12-03 01:41:15
问题 I always have my IDE (phpStorm) in full screen mode (Yosemite). I want my iTerm2 hotkey to slide my terminal window down over the IDE, so it doesn't open up a new space for the terminal window. As once the window slides back up it leaves me on an empty space, rather than going back to phpStorm. 回答1: Attention ! See Update3 for new iTerm versions (works for 2.1.5) Original Answer This command allows iTerm to work over fullscreen apps defaults write ~/Applications/iTerm.app/Contents/Info