coolicer
V2EX  ›  问与答

刚入 macbook,怎么改 terminal 用户名

  •  
  •   coolicer · Feb 2, 2015 · 6210 views
    This topic created in 4140 days ago, the information mentioned may be changed or developed.
    现在的名字为: xxxxxxMacbook-pro:~xxx

    占了半行,实在看不下去。


    怎么去掉 xxxxxxMacbook-pro,弄短一点。
    4 replies    2015-02-02 11:46:54 +08:00
    kchum
        1
    kchum  
       Feb 2, 2015 via iPhone   ❤️ 1
    Setting -> Share
    coolicer
        2
    coolicer  
    OP
       Feb 2, 2015
    @kchum 谢谢
    dotpig
        3
    dotpig  
       Feb 2, 2015   ❤️ 1
    sudo scutil --set ComputerName "newname"
    sudo scutil --set LocalHostName "newname"
    sudo scutil --set HostName "newname"

    其中的 ComputerName 也可以在 设置->共享 里面修改
    ray1919
        4
    ray1919  
       Feb 2, 2015
    export PS1='> '
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   991 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 22:27 · PVG 06:27 · LAX 15:27 · JFK 18:27
    ♥ Do have faith in what you're doing.