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

后端 未结 18 1835
天命终不由人
天命终不由人 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:17

    In addition to @sbedulin (Greeting, lovely Windows users!)

    The general path on Windows should be

    %USERPROFILE%\AppData\Local\atom\bin
    

    If you are using a bash emulator like babun. You'd better checkout the shell files, which only available in the real app folders

    /c/User//AppData/Local/atom/app-/resources/cli/apm.sh # or atom.sh
    

提交回复
热议问题