官方文档在此:https://iterm2.com/documentation-shell-integration.html
官方文档写的很详细,我只写写自己的使用心得。
安装方法
- bash
curl -L https://iterm2.com/shell_integration/bash \
-o ~/.iterm2_shell_integration.bash
编辑 ~/.bash_profile
或者 ~/.profile
增加下面一行。
source ~/.iterm2_shell_integration.bash
- zsh
curl -L https://iterm2.com/shell_integration/zsh \
-o ~/.iterm2_shell_integration.zsh
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] 举报,一经查实,本站将立刻删除。