iterm2

Change default terminal app in Visual Studio Code on Mac

▼魔方 西西 提交于 2019-12-17 15:23:05
问题 I want to change the default terminal app used by Visual Studio Code for Mac. I am thinking it is part of preferences or settings json, but unsure. 回答1: No. But you can vote for this feature here: https://visualstudio.uservoice.com/forums/293070-visual-studio-code 回答2: Here's an example of how to make another terminal the default for VSCode, in this example I've downloaded iTerm2 and copied iTerm2 to Applications. Code (Menu) > Preferences > User Settings Edit settings.json "terminal.external

Mac OS 终端利器 iTerm2

天大地大妈咪最大 提交于 2019-12-16 18:26:36
之前一直使用 Mac OS 自带的终端,用起来虽然有些不太方便,但总体来说还是可以接受的,是有想换个终端的想法,然后今天偶然看到一个终端利器 iTerm2,发现真的很强大,也非常的好用,按照网上配置了主题什么的,还是有些坑的,这边再记录下,以便后面查阅。 1. 安装 iTerm2 下载地址:https://www.iterm2.com/downloads.html 下载的是压缩文件,解压后是执行程序文件,你可以直接双击,或者直接将它拖到 Applications 目录下。 或者你可以直接使用 Homebrew 进行安装: $ brew cask install iterm2 2. 配置 iTerm2 主题 iTerm2 最常用的主题是 Solarized Dark theme,下载地址:http://ethanschoonover.com/solarized 下载的是压缩文件,你先解压一下,然后打开 iTerm2,按 Command + , 键,打开 Preferences 配置界面,然后 Profiles -> Colors -> Color Presets -> Import ,选择刚才解压的 solarized->iterm2-colors-solarized->Solarized Dark.itermcolors 文件,导入成功,最后选择 Solarized Dark 主题

mac iterm2 expect 方式sz rz 失效

最后都变了- 提交于 2019-12-15 23:56:29
用的Mac,iterm2 登录服务器,写的脚本登录服务器,里面用到了expect命令。 Mac和服务器都安装了sz rz 工具,但是用sz从服务器下载文件,一直处于假死的状态,虽然提示了文件传输成功,但是到本地文件夹也没找到。从网上找了一下发现是 expect命令会造成 sz rz 失效。因此找了以下解决方案。 这里提到了一个解决方案: https://blog.csdn.net/lovewebeye/article/details/85049423 照着弄了下。 新建一个脚本,输入以下内容 #!/bin/sh #basepath=$(cd `dirname $0`; pwd) export LC_CTYPE=en_US #expect脚本所在位置 #filepath=$basepath/XXX.sh exec 脚本的绝对路径 主要是加了一个export LC_CTYPE=en_US 然后在这个脚本里执行了我们真正的登录脚本。 Mac iterm2 使用expect后无法使用lrzsz 指令,上传不报错,文件也没有 关于怎么这只rz sz 支持 https://blog.51cto.com/fulin0532/1926254 来源: 51CTO 作者: 努力的C 链接: https://blog.51cto.com/fulin0532/2439271

Pasting a large chunk of code to tmux on Mac OSX

做~自己de王妃 提交于 2019-12-13 07:59:57
问题 Suppose I open a python on tmux. If I paste a large chunk of code which involves some delays and print statements, tmux will return some random rubbish to me. For example, if I copy the following code (please manually to repeat the middle part) import time print("hello world");time.sleep(0.02) print("hello world");time.sleep(0.02) . . (please repeat it at least 50 times) . print("hello world");time.sleep(0.02) and paste it to the tmux window. It doesn't return what we expected but some random

iTerm2 open file

柔情痞子 提交于 2019-12-13 07:25:10
问题 iTerm2 has a nice ⌘-click to open a file in your IDE. The problem is I'm running a web server via Vagrant, so /home/vagrant isn't really a physical directory that iTerm2 can access. Is there a way I can either: A.) Map /home/vagrant/ to /Sites in my .bash_profile B.) Run it through a Find/Replace script that returns the modified path? Any suggestions? Thanks 回答1: There is not way to configure it using .bash_profile... but there is a solution inside your iTerm2's preference. Preferences ->

iTerm2 tabs don't start different terminal session

元气小坏坏 提交于 2019-12-13 07:16:43
问题 I've installed iTerm2 on all of my computers (OS X). On each of them, when I hit cmd t , a new tab opens and I get a new session... except for one of them. On this one, when I hit cmd t , a new tab opens, but it's the same session. Anything I do in one tab is reflected in all of the tabs. I've read through the preferences a few times and haven't seen anything that would control this. Googled it too. Anyone know what's up here? EDIT 1 To clarify: When I first start (only 1 tab) and do an ls I

iTerm 2 Doesn't Start Up With Proper Default Profile

淺唱寂寞╮ 提交于 2019-12-12 18:14:58
问题 When iTerm 2 starts up it uses a profile called "default" that doesn't exist. If I open a new tab, I get the behavior I expected on start: Here are my profiles: What keeps my real default from loading on start? 回答1: I had a similar problem and it was caused by an "Arrangement" setup that was loaded with iTerm. Once I removed that the default profile would load correctly =D 来源: https://stackoverflow.com/questions/33068960/iterm-2-doesnt-start-up-with-proper-default-profile

Mac定制终端:iTerm2 + zsh + powerline

孤街浪徒 提交于 2019-12-11 19:06:04
原始界面: 配置后的界面: 安装iTerm2 可以直接去官网下载: https://www.iterm2.com/ 下载后直接安装即可 安装主题 所有主题: https://iterm2colorschemes.com/ 我使用的是吸血鬼主题,具体下载方式,去官网: https://draculatheme.com/ 找到iTerm 点进去以后会教你如何操作 有git的话,就clone项目下来,如果没有用git就下载zip文件。 然后在打开iTerm2 > Preferences > Profiles > Colors选项卡 安装powerline 通常可以使用pip来安装,没有pip的先安装个python pip install --user powerline-status 安装对应的字体 链接: https://github.com/powerline/fonts/blob/master/Meslo%20Slashed/Meslo%20LG%20M%20Regular%20for%20Powerline.ttf 下载字体后,直接安装就行 安装oh my zsh 安装方法有两种,可以使用curl或wget,看自己环境或喜好(当然,curl或者wget都可以通过homebrew来安装,如果没有的话): # curl 安装方式 sh -c "$(curl -fsSL https:/

How to exit alternate screen scrolling on iTerm2 Vim?

心已入冬 提交于 2019-12-11 15:19:13
问题 First, sorry if the title isn't precise. I'm in a weird situation, while using Vim on Mac iTerm2. More precisely, when I release two finger click it scrolls down 3 lines. Sort of same thing is mentioned at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=683942 and its referred as "alternate screen scrolling". How do I came in this situation? Well, I was in a remote ssh session and just just closed macbook, put it on bag and went to lunch. When I came back I experienced this strange thing.

Mac OS 终端利器 iTerm2

烈酒焚心 提交于 2019-12-11 15:03:11
之前一直使用 Mac OS 自带的终端,用起来虽然有些不太方便,但总体来说还是可以接受的,是有想换个终端的想法,然后今天偶然看到一个终端利器 iTerm2,发现真的很强大,也非常的好用,按照网上配置了主题什么的,还是有些坑的,这边再记录下,以便后面查阅。 1. 安装 iTerm2 下载地址:https://www.iterm2.com/downloads.html 下载的是压缩文件,解压后是执行程序文件,你可以直接双击,或者直接将它拖到 Applications 目录下。 或者你可以直接使用 Homebrew 进行安装: $ brew cask install iterm2 2. 配置 iTerm2 主题 iTerm2 最常用的主题是 Solarized Dark theme,下载地址:http://ethanschoonover.com/solarized 下载的是压缩文件,你先解压一下,然后打开 iTerm2,按 Command + , 键,打开 Preferences 配置界面,然后 Profiles -> Colors -> Color Presets -> Import ,选择刚才解压的 solarized->iterm2-colors-solarized->Solarized Dark.itermcolors 文件,导入成功,最后选择 Solarized Dark 主题