Mac|Mac Automator用vim打开hosts文件

Automator官方链接
1. 打开Automator,选择“服务”
Mac|Mac Automator用vim打开hosts文件
文章图片
DD5BD46E-0149-496D-8144-D2F3AD7A7160.png 2. 选择运行方式
  • AppleScript用来运行shell脚本
  • 这里选择在finder下可用服务
Mac|Mac Automator用vim打开hosts文件
文章图片
999AF1D6-D58C-4BEF-AB15-07EC9DD7E36A.png 3. 写一段简单的shell
  • 框中第一行:打开终端
  • 2:使用vim编辑hosts文件
Mac|Mac Automator用vim打开hosts文件
文章图片
39FE33A2-38C5-482C-937A-E0D7856EA963.png 4. command + s 保存“服务”
Mac|Mac Automator用vim打开hosts文件
文章图片
9F6B5B00-E04D-490F-AA69-0B5E2464B827.png 实操: Mac|Mac Automator用vim打开hosts文件
文章图片
Mac|Mac Automator用vim打开hosts文件
文章图片
362FEEB9-DF8E-4370-8C25-AEA9A6FC201A.png 【Mac|Mac Automator用vim打开hosts文件】仅仅记录一下Automator操作步骤。

    推荐阅读