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

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

    The symlink solution for this stopped working for me in zsh today. I ended up creating an alias in my .zshrc file instead:

    alias atom='sh /Applications/Atom.app/Contents/Resources/app/atom.sh'

提交回复
热议问题