POSIX/ bash profile
Bash Profile
(Bash Startup Files)
<meta charset="utf-8">"Bash will attempt to execute a set of startup files depending on how it was invoked. See the<a rel="nofollow" class="external text" href="https://www.gnu.org/software/bash/manual/bash.html#Bash-Startup-Files">Bash Startup Files</a>section of the GNU Bash manual for a complete description." -https://wiki.archlinux.org/index.php/Bash
The most common of which is bash_profile.
Here, users usually define the paths of various command line programs.
like:
- NVM
- PHP
- etc.
On OSX and Ubuntu (including Ubuntu on WSL), this file is located at:~/.bash_profile
"~" is a shortcut in it's self, referring to the home directory for that user
System-wide changes can be made in /etc/bashrc
These files can be edited with any editor that you can grant admin rights.
...But the quick and dirty way is sudo nano ~/.bash_profile
or sudo nano /etc/bashrc