请勿打扰
从命令行控制macOS Do Not Disturb功能
安装
$ npm install --global do-not-disturb-cli
用法
$ do-not-disturb --help
Usage
$ do-not-disturb
Commands
on
off
toggle
status
Examples
$ do-not-disturb on
$ do-not-disturb status
找不到自制程序命令
该项目为macOS上的Homebrew用户复制了Ubuntu的command-not-found 。
在Ubuntu上,当您尝试使用本地不存在但可通过软件包获得的命令时,Bash会建议您安装该命令。 使用此脚本,您可以在macOS上复制此功能:
# on Ubuntu
$ when
The program ' when ' is currently not installed. You can install it by typing:
sudo apt-get ins