1
idblife 2022 年 10 月 16 日 via iPhone
同求
|
2
jorneyr 2022 年 10 月 16 日
iTerm Profile 的 General 里设置:
1. Title: Name 2. 不勾选 Applications in terminal may change the title 然后使用 Shuttle 来在 iTerm 里打开 Tab 执行命令或者登录 ssh ,则 iTerm 的 tab 标题就是 Shuttle 里设置的 Name: { "name": "广发-1.174", "cmd": "ssh.exp [email protected] 'Newdt@cn'" }, Shuttle 主页: http://fitztrev.github.io/shuttle |
3
jorneyr 2022 年 10 月 16 日
晕了,没有隐藏信息,直接复制过来就用了。
|
5
butanediol2d 2022 年 10 月 16 日 via iPhone
iterm2 设置,Profiles ,选择你用的 profile ,右边 general 设置,title ,把 Host 勾选上。
不知道楼主想要的是不是这个设置 |
6
nijux 2022 年 10 月 16 日
还可以试试 tmux , 教程可以 b 站找,很方便的
|
7
jorneyr 2022 年 10 月 16 日
@yanjieee Shuttle 配合 expect 脚本自动登录 ssh 非常舒服,Shuttle 还能分类管理上百个主机,我比较喜欢,有兴趣可以参考这个 http://qtdebug.com/mac-terminal/
|
8
KingFong OP PRO @butanediol2d 不是,这个是我本机的 host 。😂
|
10
butanediol2d 2022 年 10 月 16 日
@yanjieee #8 我这里显示的是 ssh 的目标机器啊?还是说我理解错了,你要它一直显示本机?
|
11
tinywhale 2022 年 10 月 17 日
我用的主题是 Minimal 所以只有 tab title ,在 Profiles > General 里设置 Title 为 Job ,这样 ssh 的时候确实是会自动显示远程服务器的名字,但是有个毛病是退出 ssh 后 tab title 仍然卡在 root@... :facepalm:
也可以研究一下这个 https://iterm2.com/documentation-automatic-profile-switching.html |
12
KingFong OP PRO |
13
skybig 2022 年 10 月 17 日
@yanjieee https://iterm2.com/documentation-session-title.html 官方文档看过了吗?我也在尝试。
|
14
shervy 2023 年 11 月 20 日
配置文件-窗口,自定义窗口标题
不知道是不是你想要的。你可以试试 |