V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
shawnbluce
V2EX  ›  macOS

搞了个 iterm2 上突出标识服务器的插件

  •  
  •   shawnbluce · 2020-08-24 09:45:17 +08:00 · 2542 次点击
    这是一个创建于 1312 天前的主题,其中的信息可能已经有所发展或是发生改变。

    大家肯定都遇到过有那么一瞬间忘记自己当前的终端是哪台服务器的事情(没有的闭嘴 哈哈哈哈哈),而且恍惚间也容易把本该在其他服务器上操作的命令写在错误的服务器上。所以搞了这么个插件,每当你登陆服务器的时候,都会把 iterm2 的 tab 高亮变色,而且在右上角加上一个服务器标志提醒,从而随时提醒着自己当前是在哪台机器上。 大家有兴趣的可以看一看呀

    https://github.com/shawn-bluce/server_tag/

    11 条回复    2020-08-25 13:21:00 +08:00
    JJstyle
        1
    JJstyle  
       2020-08-24 10:03:42 +08:00
    请问你标签页的布局怎么设置的(标签和标题栏共用一行),感觉不错
    lululau
        2
    lululau  
       2020-08-24 10:04:49 +08:00
    赞 👍
    shawnbluce
        3
    shawnbluce  
    OP
       2020-08-24 10:07:59 +08:00   ❤️ 2
    @JJstyle #1 Perferences -> Appearance -> General -> Theme = Minimal
    Foralrec
        4
    Foralrec  
       2020-08-24 10:32:53 +08:00
    体验一下. 话说不知道 status bar 组件能不能扩展
    littlewing
        5
    littlewing  
       2020-08-24 11:00:40 +08:00 via iPhone
    不知道支不支持堡垒机登陆的方式
    leyle
        6
    leyle  
       2020-08-24 16:17:01 +08:00
    maybe parses and extends .ssh/config is a better choice.
    wupher
        7
    wupher  
       2020-08-24 17:23:59 +08:00
    赞 +1
    shawnbluce
        8
    shawnbluce  
    OP
       2020-08-24 20:33:51 +08:00
    @littlewing #5 堡垒机不太行,我这个插件是用 ssh 命令解析的。不过倒是可以标记你再堡垒机上,而非本地或是直连其他服务器
    ladychili
        9
    ladychili  
       2020-08-25 09:08:42 +08:00
    @shawnbluce #3 原来是 3.3 的新功能~ 这才发现好久都没有更新 iterm2 了
    shawnbluce
        10
    shawnbluce  
    OP
       2020-08-25 09:26:43 +08:00
    @ladychili #9 我也没太注意版本,上半年才买的电脑,装上就有🤣
    kingfalse
        11
    kingfalse  
       2020-08-25 13:21:00 +08:00 via Android   ❤️ 1
    借楼安利一波,一键安装一个漂亮强大的 iterm2 。https://github.com/KingFalse/ohmyiterm2
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3059 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:49 · PVG 20:49 · LAX 05:49 · JFK 08:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.