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

mac 开机执行 shell 后,怎么能自动隐藏终端窗口?

  •  
  •   xifan8866 · Aug 10, 2016 · 10180 views
    This topic created in 3553 days ago, the information mentioned may be changed or developed.
    rt ,,,我的意思是,执行 shell 是静默的,不显示终端窗口就执行 shell.
    9 replies    2016-08-11 14:12:54 +08:00
    cxbig
        1
    cxbig  
       Aug 10, 2016
    可以用 cron 定时执行
    可以用 nohup 配合&后台执行
    cxbig
        2
    cxbig  
       Aug 10, 2016
    会用 Automator 或者 Alfred 也可以做一个脚本来运行
    UnisandK
        3
    UnisandK  
       Aug 10, 2016
    launchctl
    ozOGen
        4
    ozOGen  
       Aug 11, 2016
    .bashrc
    tinybaby365
        5
    tinybaby365  
       Aug 11, 2016 via iPhone
    @UnisandK 这个才是标准做法
    isbase
        6
    isbase  
    PRO
       Aug 11, 2016 via Android   ❤️ 1
    终端设置里选择 shell 退出后关闭窗口
    xifan8866
        7
    xifan8866  
    OP
       Aug 11, 2016
    @isbase 哪个命令?
    xifan8866
        8
    xifan8866  
    OP
       Aug 11, 2016
    @isbase 找到了,谢谢
    xifan8866
        9
    xifan8866  
    OP
       Aug 11, 2016
    选择 shell 退出后关闭窗口:终端-偏好设置-描述文件-shell-当 shell 退出时。改下面为关闭窗口就可以了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   767 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 21:05 · PVG 05:05 · LAX 14:05 · JFK 17:05
    ♥ Do have faith in what you're doing.