Adding the ~ / bin directory to your path

I need to add the ~ / bin directory to your path.

But I'm not sure what the actual command for this is, I know this is happening in my .bash_profile

Does anyone know this or a tutorial on how to set up a new .bash_profile for terminal on a new Mac (UNIX)

+6
source share
1 answer

Add this to .bash_profile:

export PATH="$PATH":~/bin

If you do not have .bash_profile, just create it.

+10
source

Source: https://habr.com/ru/post/944248/


All Articles