Pik on Windows 7 does not remember the choice

I use pik on Windows 7. I cannot make pik to remember the choice of ruby ​​version.

Example:

Command Window 1

 > pik list * 187: ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] 192: ruby 1.9.2p290 (2011-07-09) [i386-mingw32] 193: ruby 1.9.3p125 (2012-02-16) [i386-mingw32] 

I choose version 193.

 >pik 193 >pik list 187: ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] 192: ruby 1.9.2p290 (2011-07-09) [i386-mingw32] * 193: ruby 1.9.3p125 (2012-02-16) [i386-mingw32] 

Now I launch another command window:

Command Window 2

 > pik list * 187: ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] 192: ruby 1.9.2p290 (2011-07-09) [i386-mingw32] 193: ruby 1.9.3p125 (2012-02-16) [i386-mingw32] 

In a new window, the choice of ruby ​​is not remembered. How to make pik save ruby ​​selection in command window sessions?

+6
source share
2 answers

Pik does not load when opening a new command line. Because of this, it cannot default to using any Ruby interpreter for a new window.

To have one Ruby interpreter in PATH, you will need to change your user or system PATH so that it is always available.

Later, you can use Pik to change the version of Ruby to the one you need.

However, you can configure Ruby by default so that you can use pik default to use this. See pik help use for documentation.

+6
source

I am sure that pik defaults to Ruby , which is defined in the System Path variable.

So, to change the default Ruby value, you will need to change the System Path variable to your preferred choice of Ruby .

+1
source

Source: https://habr.com/ru/post/915835/


All Articles