Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
887 views
in Technique[技术] by (71.8m points)

macos - How do I make iTerm terminal notify me when a job/process is complete?

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).

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Notify on already running processes:

Shortcut: ?? A or:

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

Spooky eye! : iTerm will literally keep an eye (on the top right corner) of your terminal. Once the command is finished, it will contact the Notification Center.

Why?

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)

Requirements

iTerm: Shell Integration:

iTerm2 -> Install Shell Integration

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...