何の気なしに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