Edit Shell Path

If you need to add /usr/local/bin to your OS X path for custom applications you've built and installed:

Check what shell you are using:

echo $SHELL

If it's /bin/bash, create or modify ~/.profile, adding the new path:

cat << EOF >> ~/.profile
PATH=/usr/local/bin:\$PATH; export PATH
EOF

If it's /bin/tcsh:

cat << EOF >> ~/.cshrc
set path = ( /usr/local/bin \$path )
EOF

Open a new shell window and check the paths:

echo $PATH

Technology:

Recent Updates

  • 2 years 1 day ago
  • 2 years 2 days ago
  • 2 years 4 days ago
    php 8.x
  • 2 years 5 days ago
    10.6.7
  • 2 years 1 week ago
    Drop Centos 5/6 stuff