iterm2

mac下使用rz sz的配置

雨燕双飞 提交于 2020-01-13 14:14:15
系统:mac ox 连接服务器工具:itrem2 1.安装iterm2不做过多介绍 官网下载 http://www.iterm2.com/ 2.安装homebrew ruby -e " $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 3.安装lrzsz brew install lrzsz 4. 配置rz sz 进行上传下载 cd /usr/ local/bin 新增如下两个文件 vi iterm2-recv-zmodem.sh #!/bin/bash # Author: Matt Mastracci (matthew@mastracci.com) # AppleScript from http://stackoverflow.com/questions/4309087/cancel-button-on-osascript-in-a-bash-script # licensed under cc-wiki with attribution required # Remainder of script public domain osascript -e 'tell application "iTerm2" to version' > /dev/null 2>&1 &&

Change colors on executable files in the terminal (or iTerm2)

血红的双手。 提交于 2020-01-13 11:06:11
问题 How do I change it, so executable files don't have another color, compared to other files? I'm on macOS Sierra (10.12.6). It's the same, both in the regular Terminal: ... or in iTerm2: It's frustating to look at. If i write chmod -x [FILENAME] then it disappears. But I don't want to change if the files are executable or not, - I want to change the color of executable files. I want my files to look like this (regardless of if it's executable or not): 回答1: I tried correcting Anshuman's answer,

Keybindings for copy mode in iTerm2

血红的双手。 提交于 2020-01-13 07:24:20
问题 The iTerm2 documentation lists these keybindings for "Copy Mode". I would like to change these keybindings, however I don't see any of those commands listed in the Preferences → Keys → Action menu. Where / How can I change them? 来源: https://stackoverflow.com/questions/59204637/keybindings-for-copy-mode-in-iterm2

Keybindings for copy mode in iTerm2

…衆ロ難τιáo~ 提交于 2020-01-13 07:22:10
问题 The iTerm2 documentation lists these keybindings for "Copy Mode". I would like to change these keybindings, however I don't see any of those commands listed in the Preferences → Keys → Action menu. Where / How can I change them? 来源: https://stackoverflow.com/questions/59204637/keybindings-for-copy-mode-in-iterm2

goland里面看到的程序和外面不一致

喜你入骨 提交于 2020-01-06 17:24:10
问题 问题是这样产生的:我在iterm2执行了一个命令,这个命令会生成一些代码,并替换掉项目中对应部分原有的代码,执行完这个命令之后,我打开goland,想查看一下命令是否生效了,也就是代码是不是更新了,结果发现,并没有! 一开始我以为是因为goland不会自动刷新,于是把相应的文件关了重新打开,发现没有用! 于是我又把整个goland关掉,然后重新打开我的项目,发现还是不行! 难道是命令没有生效??? 我又回到iterm2,用vim直接查看相应的代码,发现更新了啊,为啥goland里就是不同步呢? 解决 思索了半天,终于发现了原因,原因就是: goland里和iterm2里不是一个git分支。。。。。。 goland里的分支,是我用goland打开项目以后,在goland里的terminal创建的,而iterm2里还是原始的dev分支,所以,我在iterm2里执行的命令更新了dev分支的代码,但是并没有影响我在goland里自己创建的分支,所以两个自然是不会同步的了。。。 被这个问题搞了半天,真是太愚蠢了。。。 来源: CSDN 作者: djqueen 链接: https://blog.csdn.net/u013536232/article/details/103815719

C-S-DEL (Kill an entire line at once) doesn't work in my emacs

*爱你&永不变心* 提交于 2020-01-05 12:59:29
问题 This says that C-S-DEL is bound to kill-whole-line command that kills an entire line at once. I tried it on my macbook with emacs 24.5.1, however, it doesn't work at all. I then use C-h k C-S-DEL to check what happened when I press this hotkey. It says that, only DEL key is recognised other than Ctrl + Shift + DEL . I install this emacs (version 24.5.1) via Homebrew and run it in iTerm2. It does't have a GUI version (I prefer to use in terminal), and is launched simply via emacs command. How

C-S-DEL (Kill an entire line at once) doesn't work in my emacs

穿精又带淫゛_ 提交于 2020-01-05 12:59:19
问题 This says that C-S-DEL is bound to kill-whole-line command that kills an entire line at once. I tried it on my macbook with emacs 24.5.1, however, it doesn't work at all. I then use C-h k C-S-DEL to check what happened when I press this hotkey. It says that, only DEL key is recognised other than Ctrl + Shift + DEL . I install this emacs (version 24.5.1) via Homebrew and run it in iTerm2. It does't have a GUI version (I prefer to use in terminal), and is launched simply via emacs command. How

howto send emacs control-quote (C-') via terminal (iTerm2)

半世苍凉 提交于 2020-01-05 03:06:51
问题 I have seen this answer for the case of xterm Send "C-(" to Emacs in VT100/xterm terminal (Mac OS X's Terminal)? Yet, how would i represent the conrol key in ctrl + char combinations (like emacs C-') while sending escape-sequences or hex-codes via iTerm2 ? Experimenting in accord with the link above, I can send C - & and C - ( BUT NOT C - ' . Why? ^[[27;6;38~ yields C-& as expected ^[[27;6;39~ yields ~ only tilde ^[[27;6;40~ yields C-( as expected 来源: https://stackoverflow.com/questions

mac效率工具使用

醉酒当歌 提交于 2019-12-27 20:10:51
iTerm2 命令 智能选中** 双击 选中, 三击 选中整行, 四击 智能选中 选中即复制 按住⌘键 可以拖拽选中的字符串 点击文件:调用默认程序打开文件 点击文件夹:在 finder 中打开该文件夹 同时按住option键,可以以矩形选中 类似于vim中的ctrl v操作 分屏 ⌘ + d : 垂直分屏 ⌘ + shift + d : 水平分屏 ⌘ + ] , ⌘ + [ :在最近使用的分屏直接切换 也可用 ⌘+Option+方向键 Tab相关 ⌘+数字 直接定位到该 tab ⌘ + t :新建tab 自动完成 ⌘+; 弹出自动补齐窗口,列出曾经使用过的命令 ⌘+shift+h 弹出历史命令 配置 参考 http://wulfric.me/2015/08/iterm2/ < http://wulfric.me/2015/08/iterm2/ > https://www.cnblogs.com/guiyuhua/p/8610629.html Alfred 参考 https://www.zhihu.com/question/41049134/answer/738169190 https://www.cnblogs.com/xjnotxj/p/10272591.html 来源: CSDN 作者: _萤火 链接: https://blog.csdn.net/winter_wu_1998

iterm2 保存ssh账号自动连接

女生的网名这么多〃 提交于 2019-12-24 10:28:58
作为一名coder,我们经常需要连接服务器进行一些操作,然而冗长的ssh密码登录属实有些繁琐。如果你使用了终端工具iTerm2,便可以事半功倍! iTerm2具有 很多优点 : 智能选中,双击选中,三击选中整行,四击智能选中; 全文查找 command + f ; 窗口垂直 command + d 、水平 command + shift + d 拆分; command + ; 自动补齐命令 记录历史输入命令 command + shift + h 等等。 官网地址 1. expect脚本 首先,我们写一个expect 脚本,放在 /usr/local/bin 目录下, cd /usr/local/bin 创建expect 脚本文件, touch iterm2login.exp vim iterm2login.exp ,编辑脚本内容,内容如下, #!/usr/bin/expect set timeout 30 spawn ssh [lindex $argv 0]@[lindex $argv 1] expect { "(yes/no)?" {send "yes\n";exp_continue} "password:" {send "[lindex $argv 2]\n"} } interact wq 保存退出,然后还有最后一步。 给脚本添加读写权限,在当前目录执行 sudo chmod