美文网首页
Mac Automator用vim打开hosts文件

Mac Automator用vim打开hosts文件

作者: sdupidBoby | 来源:发表于2018-07-06 16:55 被阅读25次

Automator官方链接

1. 打开Automator,选择“服务”

DD5BD46E-0149-496D-8144-D2F3AD7A7160.png

2. 选择运行方式

  • AppleScript用来运行shell脚本
  • 这里选择在finder下可用服务
999AF1D6-D58C-4BEF-AB15-07EC9DD7E36A.png

3. 写一段简单的shell

  • 框中第一行:打开终端
  • 2:使用vim编辑hosts文件
39FE33A2-38C5-482C-937A-E0D7856EA963.png

4. command + s 保存“服务”

9F6B5B00-E04D-490F-AA69-0B5E2464B827.png

实操:

362FEEB9-DF8E-4370-8C25-AEA9A6FC201A.png

仅仅记录一下Automator操作步骤。

相关文章

网友评论

      本文标题:Mac Automator用vim打开hosts文件

      本文链接:https://www.haomeiwen.com/subject/kdlbuftx.html