Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

cliからbrew-caskでインストールしたatom呼びたい

More than 5 years have passed since last update.

何の気なしにbrew-caskでインストールしたatomをcliにてatomコマンドで呼ぼうとしたら

usage: dirname path
Cannot locate Atom.app, it is usually located in /Applications. Set the ATOM_PATH environment variable to the directory containing Atom.app.

とか言われてしまった時は

.zprofileなどに(bashのひとは.bash_profileに)
ATOM_PATHとしてatom.appがある場所書いてあげればいい
(まんまですね)

私の場合は以下のディレクトリでした

export ATOM_PATH=/opt/homebrew-cask/Caskroom/atom/latest
osakanafish
🐟
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away