1

I am trying to add ruby binaries to my path with this :

$ PATH=$PATH:/home/ehsan/.gem/ruby/2.3.0/bin

This works fine in that terminal session and I get :

$ rails -v
Rails 5.0.0

But after I close that terminal session and open new one and I enter rails :

$ rails -v
rails : command not found

Any ideas?

ehsan
  • 13
  • 4

1 Answers1

2

PATH is an environment variable like any other.

To make a permanent change, put it in the startup script for your shell. e.g. ~/.bashrc or ~/.bash_profile or for bash. or ~/.profile for bash and other bourne-like shells.

cas
  • 78,579