V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
shawnbluce
V2EX  ›  macOS

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

  •  
  •   shawnbluce · Aug 24, 2020 · 3500 views
    This topic created in 2073 days ago, the information mentioned may be changed or developed.

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

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

    11 replies    2020-08-25 13:21:00 +08:00
    JJstyle
        1
    JJstyle  
       Aug 24, 2020
    请问你标签页的布局怎么设置的(标签和标题栏共用一行),感觉不错
    lululau
        2
    lululau  
       Aug 24, 2020
    赞 👍
    shawnbluce
        3
    shawnbluce  
    OP
       Aug 24, 2020   ❤️ 2
    @JJstyle #1 Perferences -> Appearance -> General -> Theme = Minimal
    Foralrec
        4
    Foralrec  
       Aug 24, 2020
    体验一下. 话说不知道 status bar 组件能不能扩展
    littlewing
        5
    littlewing  
       Aug 24, 2020 via iPhone
    不知道支不支持堡垒机登陆的方式
    leyle
        6
    leyle  
       Aug 24, 2020
    maybe parses and extends .ssh/config is a better choice.
    wupher
        7
    wupher  
       Aug 24, 2020
    赞 +1
    shawnbluce
        8
    shawnbluce  
    OP
       Aug 24, 2020
    @littlewing #5 堡垒机不太行,我这个插件是用 ssh 命令解析的。不过倒是可以标记你再堡垒机上,而非本地或是直连其他服务器
    ladychili
        9
    ladychili  
       Aug 25, 2020
    @shawnbluce #3 原来是 3.3 的新功能~ 这才发现好久都没有更新 iterm2 了
    shawnbluce
        10
    shawnbluce  
    OP
       Aug 25, 2020
    @ladychili #9 我也没太注意版本,上半年才买的电脑,装上就有🤣
    kingfalse
        11
    kingfalse  
       Aug 25, 2020 via Android   ❤️ 1
    借楼安利一波,一键安装一个漂亮强大的 iterm2 。https://github.com/KingFalse/ohmyiterm2
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1189 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 23:13 · PVG 07:13 · LAX 16:13 · JFK 19:13
    ♥ Do have faith in what you're doing.