阿猫的博客

阿猫的博客

TIL

macOS 命令完成后展示一条通知

执行以下命令可以展示一条通知: osascript -e 'display notification "The command finished" with title "Success"' 所以在 .zshrc 中定义一个函数: function notifyMe () { if [ $?
45
2
2025-07-08