xifan8866
V2EX  ›  macOS

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

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