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

  • 8 months 3 weeks ago
    1.27.2 update
  • 9 months 3 days ago
    Drupal 10/11 config
  • 9 months 5 days ago
  • PHP
    9 months 5 days ago
    PHP 8.3.11 and AlmaLinux
  • 9 months 5 days ago
    New version of Pound