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

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

    With conemu on windows 10 I couldn't call atom from console even after I added %USERPROFILE%\AppData\Local\atom\bin to PATH in environment variables. I just added

    alias atom="C:/Users/me/AppData/local/atom/app-1.12.7/atom"
    

    to my .bashrc file.

提交回复
热议问题