How to open Atom editor from command line in OS X?

后端 未结 18 1861
天命终不由人
天命终不由人 2020-12-02 03:44

I have the Atom editor and was wondering how you can open a file or folder from the terminal in Atom. I am using a Mac. I am looking for a way to do this:

at         


        
18条回答
  •  死守一世寂寞
    2020-12-02 04:09

    With the Atom editor open, in the menu bar:

    Click Atom >> Install Shell Commands

    atom-add-shell-commands

    You should expect to see:

    atom-commands-installed

    Potentially restart your terminal. (I did just out of habit, not sure if you need to)

提交回复
热议问题