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

iterm 2 用 ssh 连接外部服务器后,美化失效,求问怎么解决?

  •  
  •   GTD · Jul 19, 2020 · 3418 views
    This topic created in 2117 days ago, the information mentioned may be changed or developed.
    原本 iterm 2 是装了 ohmyzsh 和一些主题美化的,但是一旦用 ssh 连接外部服务器后,就全部只剩文字了,什么关键词标注啊什么的全部没了,界面很丑,有办法解决这个问题吗?
    6 replies    2020-07-20 15:06:38 +08:00
    GTD
        1
    GTD  
    OP
       Jul 19, 2020
    哦哦 我傻逼了,因为外部服务器没有安装 ohmyzsh...
    justin2018
        2
    justin2018  
       Jul 19, 2020
    求楼主的美化 😁
    GTD
        3
    GTD  
    OP
       Jul 19, 2020   ❤️ 1
    @justin2018 #2 楼主瞎弄的,完全根据这个来的: https://gist.github.com/kevin-smets/8568070
    PinLock
        4
    PinLock  
       Jul 19, 2020
    远程服务器的 bash 也需要操作,基本就是按照你美化 iterm2 一样的再来一次。
    littlewing
        5
    littlewing  
       Jul 19, 2020   ❤️ 1
    ohmyzsh 美化的不是 iTerm,而是 zshell
    FurN1
        6
    FurN1  
       Jul 20, 2020 via iPhone
    在 github 之类的 repo 存一份你自己的 dotfile,初始化服务器的时候跑个脚本,下载 dotfile 并且 source 之。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3608 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 00:37 · PVG 08:37 · LAX 17:37 · JFK 20:37
    ♥ Do have faith in what you're doing.