LoginSignup
0
0

More than 5 years have passed since last update.

全ユーザでpathをそろえる

Posted at

環境

macOS Sierra 10.12.6
MacBook Pro (13-inch, 2017, Tour Thuderbolt 3 Ports)

動機

ユーザーを切り替えても、管理者で使用しているpathを使用したい。
.bash_profileや.bashrcをそれぞれ作るのはめんどくさい。

手順

  • Apple公式サイトに従い、ルートユーザを有効にしてから、ルートユーザでログインする。
    https://support.apple.com/ja-jp/HT204012

  • /etc/pathsに必要なpathを加える。

以上です。
etc/pathsファイルは全ユーザにPATHを通せるようです。ただしルートユーザでログインしないとファイルを変更することができません。

もろもろ

  • PATHの確認 echo $PATH
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0