Skip to main content

Settting up PATH Environment Variables


HOW TO EDIT PATH VARIABLES IN MAC - 

1. Open terminal and enter the following command  - 
touch ~/.bash_profile; open ~/.bash_profile
This will open the bash_profile in text editor 

2. Add the following line to the end of the file adding whatever additional directory you want in your path:
export PATH="$HOME/.rbenv/bin:$PATH"

3. Save the .bash_profile file and Quit (Command + Q) Text Edit.

4. Force the .bash_profile to execute. This loads the values immediately without having to reboot. In your Terminal window, run the following command.
source ~/.bash_profile

Voila ! You are done. 
Check your Path vars by typing echo$PATH in the editor.   

Multiple path environment variable setup with bash -

export PATH="A"
export PATH="$PATH:B"
export PATH="$PATH:C"

Comments

Popular posts from this blog

Backslash on mac

I had been struggling to type back slash ( \) character on mac japanese keyboard as they don't have it printed on the keyboard, and I was doing copy paste all the time from google when i needed to type it until recently a tip came to my rescue , shortcut to backslash on mac japanese keyboard. Alt + ¥  Hope it helps others. 

How to Enter Split View on MAC

Enter Split  View Hover your pointer over the full-screen button in the upper-left corner of a  window . Or click and hold the button. Choose ”Tile  Window  to Left of Screen” or ”Tile  Window  to Right of Screen” from the menu. ... Then click a  window  on the other side of the screen to begin using both  windows  side by side. Hover your pointer over the full-screen button in the upper-left corner of a  window . Or click and hold the button. Choose ”Tile  Window  to Left of Screen” or ”Tile  Window  to Right of Screen” from the menu. ... Then click a  window  on the other side of the screen to begin using both  windows  side by side.