Skip to content

Instantly share code, notes, and snippets.

@startergo
Created July 24, 2023 19:35
Show Gist options
  • Save startergo/6db393d9df4d1f27c987b8c1ba363b75 to your computer and use it in GitHub Desktop.
Save startergo/6db393d9df4d1f27c987b8c1ba363b75 to your computer and use it in GitHub Desktop.
Add directory to path
  • This will make sure that /usr/local/bin is part of PATH for all shells started/Terminal tabs created after the line has been executed.
sudo sh -c 'grep -q "/usr/local/bin" /etc/paths || echo "/usr/local/bin" >> /etc/paths'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment