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