iterm2

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

倾然丶 夕夏残阳落幕 提交于 2019-12-03 01:23:00
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 to before, and not sure how that interacts with pyenv. I solved it by installing python from homebrew:

iTerm2配色

十年热恋 提交于 2019-12-03 00:28:47
效果: 配色方案代码地址: https://github.com/mbadolato/iTerm2-Color-Schemes 点击最右边的绿色区域,再点击 “import”, 打开刚下载解压好的文件夹,打开schemes 文件夹,全选那些配色方案,点open,这样就把所有的配色方案导入了。 3. 再去点击第二步图中那个绿色区域,就能选择刚刚导入的这些 配色方案了。 我选用的是 solarized ,效果还不错。点开官网,下载,解压,然后打开 iTerm2 下的偏好设置 preference ,点开 profiles 下的colors 选项,点击右下角的 Color Presets 选项,选择import ,导入解压到的 solarized 文件下的Solarized Dark.itermcolors,或者在 github 上下载: 但是打开 iterm2 发现灰蒙蒙的, 打开 iTerm2 - Preferences - Profiles - Text - Text Rendering,将 Draw bold text in bright colors 前面的勾去掉,彩色的世界就回来了。 来源: https://www.cnblogs.com/igoodful/p/11768978.html

iTerm2+oh-my-zsh配色

匿名 (未验证) 提交于 2019-12-03 00:15:02
效果图,很帅气有木有 一、首先安装 iTem2 安装好后的截图如下: 安装好后的截图 二、安装 oh-my-zsh 。 sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 卸载oh-my-zsh命令:uninstall_oh_my_zsh 安装oh-my-zsh 安装成功如下图: 成功安装oh-my-zsh 三、安装 Powerline 先安装 pip sudo easy_install pip 再安装 Powerline pip install powerline-status 四、安装 Meslo 字体库。 方法1、可以直接复制下面命令到终端中安装: # clone git clone https://github.com/powerline/fonts.git --depth=1 # install cd fonts ./install.sh # clean-up a bit cd .. rm -rf fonts 方法2、单独下载 Meslo 字体,点击 view raw 下载字体,然后安装;如下图 单独下载字体文件 3、配置item2:( iTerm2>Preferences>Profiles>Text>Change Font ),如下图:

iTerm2 + oh my zsh +agnoster

匿名 (未验证) 提交于 2019-12-02 23:47:01
http://www.iterm2.com/downloads.html 1.通过 cat /etc/shells 命令可以查看当前系统可以使用哪些shell; # List of acceptable shells for chpass(1). # Ftpd will not allow users to connect who are not using # one of these shells. /bin/bash /bin/csh /bin/ksh /bin/sh /bin/tcsh /bin/zsh 2.通过 echo $SHELL 命令可以查看我们当前正在使用的shell; # Mac系统中默认的shell为bash shell /bin/bash 3.如果当前的shell不是zsh,我们可以通过 chsh -s /bin/zsh 命令可以将shell切换为shell之zsh,终端重启之后即可生效。 4.将shell切换为zsh之后,我们就可以安装Oh My ZSH了 官方推荐的安装方法为: sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 记住,爱FQ的童鞋记得先关闭代理哦,不然没法下载成功的 出线以下提示,便是安装成功了^_^ Oh

iTerm2 常用操作指南

匿名 (未验证) 提交于 2019-12-02 23:40:02
版权声明:本文为博主原创文章,转载请注明出处。 https://blog.csdn.net/Mervyn1205/article/details/91458323 文章目录 光标控制 标签页操作 面板操作 其他功能 文本选取 使用鼠标 不使用鼠标 窗口状态 本文转自: https://www.mervyntang.com/2019/04/iterm2_tutor.html 光标控制 ctrl + a : 到行首 ctrl + e : 行末 ctrl + f/b : 前进后退,相当于左右方向键,但是显然比移开手按方向键更快 ctrl + r : 搜索输入过的历史命令 ctrl + d : 删除当前字符 ctrl + h : 删除之前的字符 ctrl + w : 删除光标前的单词 ctrl + k : 删除到文本末尾 ctrl + u : 删除当前行 ctrl + l : 清屏 标签页操作 Command + t : 新建标签页 : Command + w : 关闭标签页 Command + 左方向键,Shift + Command + [ : 前一个标签页 Command + 右方向键,Shitf + Command + ] : 后一个标签页 Command + 标签页编号 : 进入标签页1,2,3… : 面板操作 垂直分割 : Command + D 水平分割 : Shift +

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

你说的曾经没有我的故事 提交于 2019-12-02 20:30:34
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 been able to gather. For example, what I want to do is something like this: echo -e "\033[sHello world\033

iTerm2+oh-my-zsh配色

落爺英雄遲暮 提交于 2019-12-02 18:14:50
效果图,很帅气有木有 一、首先安装 iTem2 安装好后的截图如下: 安装好后的截图 二、安装 oh-my-zsh 。 sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 卸载oh-my-zsh命令:uninstall_oh_my_zsh 安装oh-my-zsh 安装成功如下图: 成功安装oh-my-zsh 三、安装 Powerline 先安装 pip sudo easy_install pip 再安装 Powerline pip install powerline-status 四、安装 Meslo 字体库。 方法1、可以直接复制下面命令到终端中安装: # clone git clone https://github.com/powerline/fonts.git --depth=1 # install cd fonts ./install.sh # clean-up a bit cd .. rm -rf fonts 方法2、单独下载 Meslo 字体,点击 view raw 下载字体,然后安装;如下图 单独下载字体文件 3、配置item2:( iTerm2>Preferences>Profiles>Text>Change Font ),如下图:

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

大憨熊 提交于 2019-12-02 15:40:34
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! Thomas Dickey A few terminals, including iTerm2, have a feature where they change the behavior of the

iTerm2 slide down over full screen app

泪湿孤枕 提交于 2019-12-02 15:10:14
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. Friendka 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 LSUIElement true But it hides iTerm's context menu. To access iTerm's preferences, right-click on the

ZSH iterm2 increase number of lines history

时光毁灭记忆、已成空白 提交于 2019-12-02 14:34:54
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?" It's not immediately obvious in the iTerm2 documentation on how to change it. open the iTerm2 preferences ⌘ + , select the Profiles tab then select the Terminal subtab Beware, changes to the Scrollback lines value take effect immediately so check Unlimited