您当前的位置: 首页 > 

ITKEY_

暂无认证

  • 0浏览

    0关注

    732博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Iterm2 使用Shell Integration真香!

ITKEY_ 发布时间:2021-02-09 22:18:24 ,浏览量:0

官方文档在此: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-/显示最近的历史目录。 在这里插入图片描述

关注
打赏
1665243900
查看更多评论
立即登录/注册

微信扫码登录

0.0450s