mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
bgnotify - notification icons from sending app
"-sender" uses the same BundleID as "-activate" so we can display the terminal app's corresponding icon.
This commit is contained in:
parent
532e8e4645
commit
1d5faf6f72
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ terminalBundleID () {
|
|||
|
||||
bgnotify () {
|
||||
if hash terminal-notifier 2>/dev/null; then #osx
|
||||
terminal-notifier -message "$2" -title "$1" -activate "$(terminalBundleID)"
|
||||
terminal-notifier -message "$2" -title "$1" -activate "$(terminalBundleID)" -sender "$(terminalBundleID)"
|
||||
elif hash growlnotify 2>/dev/null; then #osx growl
|
||||
growlnotify -m $1 $2
|
||||
elif hash notify-send 2>/dev/null; then #ubuntu!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue