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

查看:132
本文介绍了作业/流程完成后,如何使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 或:

Edit -> Marks and Annotations -> Alerts -> Alert on next mark

: iTerm 确实会(在右上角)盯着您的终端.命令完成后,它将与Notification Center联系.

我们已经启动了命令. 我们低估了完成所需的时间,我们不想取消它,我们拒绝坐下来观看.例如很久以后brew update

We already launched the command. We underestimated the time needed for completion, we don't want to cancel it, and we refuse to sit down and watch it. e.g. a brew update after a long time!

iTerm2 -> Install Shell Integration

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

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

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

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