微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Iterm2 使用Shell Integration真香!

官方文档在此:https://iterm2.com/documentation-shell-integration.html

官方文档写的很详细,我只写写自己的使用心得。

安装方法

  1. bash
curl -L https://iterm2.com/shell_integration/bash \
-o ~/.iterm2_shell_integration.bash

编辑 ~/.bash_profile 或者 ~/.profile增加下面一行。

source ~/.iterm2_shell_integration.bash
  1. zsh
curl -L https://iterm2.com/shell_integration/zsh \
-o ~/.iterm2_shell_integration.zsh

编辑 ~/.zshrc文件末尾增加下面一行。

source ~/.iterm2_shell_integration.zsh

SSH实现密钥登录

可以参考我的这篇文章
《Mac使用ssh连接远程服务器免密码登录
https://blog.csdn.net/lxyoucan/article/details/112527301

SSH主机文件下载一键完成

在ssh中ls文件右键直接下载

在这里插入图片描述

这样就可以简单的下载成功啦!

在这里插入图片描述

拖拽文件 scp上传文件

按住 option从访达 拖拽文件到iTerm2中,文件直接上传

在这里插入图片描述

这真的是太方便啦!

Marks

Cmd-Shift-Up↑ 或者 Cmd-Shift-Down↓ 按键.

在这里插入图片描述

可以显示输入命令的地方。

查看历史命令

Shift + Cmd + ;

在这里插入图片描述


Cmd-;自动补全

在这里插入图片描述

Cmd-Opt-/显示最近的历史目录。

在这里插入图片描述

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐