Changes

Mint Linux Distribution Reference

384 bytes added, 20:38, 2 January 2018
/* Shell Environment Path */
The following lines were added (+) and removed (-):
  PATH=$PATH:$HOME/bin:/usr/local/bin:/usr/bin:/usr/myscriptsLook for the line with a comment about "set PATH so it includes user's private bin directories" and add your custom path in there like this: ( added /myscripts to the path )  PATH="$HOME/bin:$HOME/.local/bin:/myscripts:$PATH"* For everyone  vi /etc/profileLook at /etc/profile which is used for each new user directory created. It has a script still looking for .bash_profile so it appears that if a .bash_profile is created, the script will identify its existence and use it.  PATH=$PATH:/usr/myscripts  export PATHAlso note that .bashrc is executed every time a bash shell is opened and .bash_profile only if it's a login shell. Also, it appears that the default profile still looks fornotes: .bashrc is executed every time a bash shell is opened and .bash_profile only if it's a login shell.
Bureaucrat, administrator
16,192
edits