coolicer
V2EX  ›  问与答

刚入 macbook,怎么改 terminal 用户名

  •  
  •   coolicer · Feb 2, 2015 · 6514 views
    This topic created in 4295 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
    kchum
    Feb 2, 2015 via iPhone❤️1
    1
    Setting -> Share
    coolicer
    coolicer
    OP
    Feb 2, 2015
    2
    @kchum 谢谢
    dotpig
    dotpig
    Feb 2, 2015❤️1
    3
    sudo scutil --set ComputerName "newname"
    sudo scutil --set LocalHostName "newname"
    sudo scutil --set HostName "newname"

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