iterm2

Mac 终端配置(Mac OSX + iTerm2 + Zsh + Oh-My-Zsh)

限于喜欢 提交于 2019-12-02 12:47:15
我的 Mac 终端配置(Mac OSX + iTerm2 + Zsh + Oh-My-Zsh) 相关工具介绍 iTerm2:Mac 下 Terminal 终端的替代品,拥有更多强大的功能,想了解更多请戳 iTerm2 官网 ; zsh:Linux 的一种 shell 外壳,和 bash 属于同类产品; Oh-My-Zsh:用来管理 zsh 的配置,同时还有很多社区贡献的主题配置以及好用的插件可供使用,了解更多请戳 Oh-My-Zsh 官网 配置方案总览 iTerm2 终端工具; iTerm2 Solarized Dark Higher Contrast 配色方案; Monaco for Powerline 字体; zsh (Mac 系统自带,无需安装); Oh-My-Zsh; Oh-My-Zsh powerlevel9k 主题; 最终效果 详细步骤 具体配置步骤 1. 安装 iTerm2 终端工具: 打开 iTerm2 官网 直接点击 Download 下载并安装即可。 2. 安装 iTerm2 Solarized Dark Higher Contrast 配色方案: 将该配色方案文件(Solarized Dark Higher Contrast.itermcolors)复制出来,保存到本地,文件命名为 SolarizedDarkHigherContrast.itermcolors

安装 Homebrew&iterm2

ぐ巨炮叔叔 提交于 2019-12-01 01:22:32
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 将以上命令粘贴到终端: 下载安装................. 安装成功 用装好的 Homebrew安装iterm2 /*--> */ /*--> */ 输入命令:brew cask instal iterm2 来源: https://www.cnblogs.com/qianabby/p/11644388.html

How do I make iTerm terminal notify me when a job/process is complete?

我的未来我决定 提交于 2019-11-30 10:11:33
问题 A notification center notification would be ideal but growl, bounce dock, sound, etc would be fine, too (or if this can only be done in Terminal.app I'd be willing to switch back). Is there an option somewhere in iTerm to turn on notifications or is it something I'm supposed to type at the end of a command in the terminal? If the latter, is it possible to add an alert once process has started (for example if I realize it's going to take longer than I initially expected, I'm bad at guessing).

mac上透穿堡垒机器上传下载文件

让人想犯罪 __ 提交于 2019-11-28 20:01:56
安装工具 brew install lrzsz 安装iterm2 https://www.iterm2.com 添加脚本 #!/usr/bin/env bash # # iterm2-zmodem # # copyright (c) 2013 by Harald Lapp <harald@octris.org> # # AppleScript portion from: # http://stackoverflow.com/questions/4309087/cancel-button-on-osascript-in-a-bash-script # licensed under cc-wiki with attribution required # # # This script can be found at: # https://github.com/aurora/iterm2-zmodem # # # This is a re-implementation of the shell scripts "iterm2-recv-zmodem.sh" and # "iterm2-send-zmodem.sh" found at https://github.com/mmastrac/iterm2-zmodem # # usage if [[ $1 != "sz" && $1 !=

How to export iTerm2 Profiles

断了今生、忘了曾经 提交于 2019-11-28 15:00:13
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: iTerm ▶ General ▶ Preferences ▶ Save Settings To Folder and here's the output: Failed to copy

iTerm 2打造ssh完美连接Linux服务器快捷方法

二次信任 提交于 2019-11-28 03:42:10
/*--> */ /*--> */ iTerm 2打造ssh完美连接Linux服务器快捷方法 2019年05月02日 10:40:19 Mars0908 阅读数 213 更多 个人分类: Mac下开发 版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。 原文链接: https://blog.csdn.net/OMars/article/details/89627642  使用MacOS系统的同学都知道iterm2,怎么打造最强终端的方案iTerm2 + Zsh + vim,大家有兴趣可以去搜一下,这里主要介绍ssh完美连接Linux服务器方案。  经常和服务器打交道,免不了要远程连接服务器,怎么使用iterm2连接服务器,网上一搜一大把。但由于iterm2默认不能使用rz指令上传文件,以及我现在公司远程登录测试服务器,采用的方案是需要先通过跳板机登录。而且往往都会为每一位开发配置一个token,动态的产生一个6位的数字串,用来作为登录密码。  网上的一些方法总会不那么完美,在这里做个整理,顺便结合我的测试,提供一个我自己实践出来的完美解决方案。 方案一:expect+配置文件 expect连接的方式有两种: 第一种 expect脚本文件 1.在一个目录下创建一个expect脚本文件,建议在自己的.ssh目录下

解决Mac下VSCode打开zsh乱码

别等时光非礼了梦想. 提交于 2019-11-28 00:54:11
1.乱码问题 iTerm2终端使用Zsh,并且配置Zsh主题,该主题主题需要安装字体来支持箭头效果,在iTerm2中设置这个字体,但是VSCode里这个箭头还是显示乱码。 iTerm2展示如下: VSCode展示如下: 2.解决方案 2.1 字体 在字体册查找是否已经安装 Meslo LG M for Powerline 字体,如果未安装就安装一下。 2.2 VSCode中配置 使用 ⌘, 打开settings界面,搜索 terminal ,在 Font Family 中添加字体 Meslo LG M for Powerline 也可以在VSCode的settings.json文件,加入 : "terminal.integrated.fontFamily": "Meslo LG M for Powerline", 3.效果展示 欢迎大家关注😁 来源: https://my.oschina.net/u/4192650/blog/3095142

Change default terminal app in Visual Studio Code on Mac

本小妞迷上赌 提交于 2019-11-27 17:42:33
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. No. But you can vote for this feature here: https://visualstudio.uservoice.com/forums/293070-visual-studio-code LeLong37 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.osxExec": "iTerm.app" and "terminal.explorerKind": "external" Open in Terminal iTerm is now default

How to export iTerm2 Profiles

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 08:57:38
问题 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

iTerm 2: How to set keyboard shortcuts to jump to beginning/end of line?

空扰寡人 提交于 2019-11-27 05:43:05
I can see that Ctrl + left / right jumps to the beginning/end of line. How to change this to Cmd + left / right arrow ? In order to get Alt + left / right arrow working correctly for word jumping follow this article . Matthias Add in iTerm2 the following Profile Shortcut Keys FOR ACTION SEND ⌘← "SEND HEX CODE" 0x01 ⌘→ "SEND HEX CODE" 0x05 ⌥← "SEND ESC SEQ" b ⌥→ "SEND ESC SEQ" f Here is a visual for those who need it To jump between words and start/end of lines in iTerm2 follow these steps: iTerm2 -> Preferences ( ⌘ + , ) Open the “Keys” tab Add the following Global Shortcut Keys Move cursor