Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
OS x を新規インストールした後、ターミナルで echo $PATH を実行すると、空白行が返されたことを覚えています。時間をかけていくつかのツールをインストールした後、 $PATH 変数には /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin 値がありますが、私の .bash_profile は空白です。この値がどこに設定されているのか疑問に思っていましたか?
もっともらしい候補は/etc/profileと/etc/bashrcです。とも/etc/pathsあり/etc/paths.dます。$HOME/.profileおよびも参照する必要がある場合があります$HOME/.bashrc。他にも気になるところがあるかもしれませbashん。
/etc/profile
/etc/bashrc
/etc/paths
/etc/paths.d
$HOME/.profile
$HOME/.bashrc
bash