Menu

Bash: persistent path

14. maj 2015 - Linux, Notater

Bash: preserving path

Edit ~/.profile

#ruby gems
#remember - : = security-breach
export PATH=$PATH:~/.gem/ruby/2.2.0/bin
#node_gyp fordrer python2
export PYTHON=/usr/bin/python2

Source your profile to use immidiately

source ~/.profile

Logout / Login to verify your path

echo $PATH
echo $PYTHON
Tags: , ,