当作业/流程完成时,如何让 iTerm 终端通知我? [英] How do I make iTerm terminal notify me when a job/process is complete?

查看:13
本文介绍了当作业/流程完成时,如何让 iTerm 终端通知我?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通知中心通知是理想的,但咆哮、弹跳基座、声音等也可以(或者如果这只能在 Terminal.app 中完成,我愿意切换回来).iTerm 中是否有打开通知的选项,还是我应该在终端命令末尾输入的内容?如果是后者,是否可以在进程开始后添加警报(例如,如果我意识到这将比我最初预期的要花费更长的时间,我不擅长猜测).

A notification center notification would be ideal but growl, bounce dock, sound, etc would be fine, too (or if this can only be done in Terminal.app I'd be willing to switch back). Is there an option somewhere in iTerm to turn on notifications or is it something I'm supposed to type at the end of a command in the terminal? If the latter, is it possible to add an alert once process has started (for example if I realize it's going to take longer than I initially expected, I'm bad at guessing).

推荐答案

通知已经运行的进程:

快捷方式: A 或:

编辑 ->标记和注释 ->警报 ->提醒下一个标记

:iTerm 将密切关注您的终端(在右上角).命令完成后,将联系通知中心.

命令已经启动,完成时间被低估,我们不想取消命令或等待其完成.(即长时间后brew update)

Command was already launched, completion time was underestimated, and we don't want to cancel the command or wait for its completion. (i.e., brew update after a long time)

iTerm2 ->安装 Shell 集成

请注意,在重新启动 iTerm2 之前,集成不会显示通知.

Note that the integration will not show notifications until iTerm2 is restarted.

这篇关于当作业/流程完成时,如何让 iTerm 终端通知我?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆