V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xifan8866
V2EX  ›  macOS

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

  •  
  •   xifan8866 · 2016-08-10 21:39:50 +08:00 · 9250 次点击
    这是一个创建于 2822 天前的主题,其中的信息可能已经有所发展或是发生改变。
    rt ,,,我的意思是,执行 shell 是静默的,不显示终端窗口就执行 shell.
    9 条回复    2016-08-11 14:12:54 +08:00
    cxbig
        1
    cxbig  
       2016-08-10 21:47:24 +08:00
    可以用 cron 定时执行
    可以用 nohup 配合&后台执行
    cxbig
        2
    cxbig  
       2016-08-10 21:49:10 +08:00
    会用 Automator 或者 Alfred 也可以做一个脚本来运行
    UnisandK
        3
    UnisandK  
       2016-08-10 22:16:35 +08:00
    launchctl
    ozOGen
        4
    ozOGen  
       2016-08-11 01:56:06 +08:00
    .bashrc
    tinybaby365
        5
    tinybaby365  
       2016-08-11 06:53:50 +08:00 via iPhone
    @UnisandK 这个才是标准做法
    isbase
        6
    isbase  
       2016-08-11 09:37:56 +08:00 via Android   ❤️ 1
    终端设置里选择 shell 退出后关闭窗口
    xifan8866
        7
    xifan8866  
    OP
       2016-08-11 12:47:23 +08:00
    @isbase 哪个命令?
    xifan8866
        8
    xifan8866  
    OP
       2016-08-11 13:10:36 +08:00
    @isbase 找到了,谢谢
    xifan8866
        9
    xifan8866  
    OP
       2016-08-11 14:12:54 +08:00
    选择 shell 退出后关闭窗口:终端-偏好设置-描述文件-shell-当 shell 退出时。改下面为关闭窗口就可以了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2147 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:45 · PVG 12:45 · LAX 21:45 · JFK 00:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.