Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pik on Windows 7 doesn't remember the selection

I am using pik on Windows 7. I am unable to make pik to remember the ruby version selection.

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 select 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 the new window the ruby selection is not remembered. How do I make pik persist the ruby selection across command window sessions?

like image 792
Harish Shetty Avatar asked May 15 '12 18:05

Harish Shetty


People also ask

How do I restore my desktop shortcuts in Windows 7?

On the left side, switch to the “Themes” tab. On the right side, scroll down and click the “Desktop icon settings” link. If you're using Windows 7 or 8, clicking “Personalize” opens the Personalization Control Panel screen. At the upper left of the window, click the “Change desktop icons” link.

Why do my desktop icons disappear Windows 7?

On your Windows 7 PC, shortcuts that you create on the desktop may be missing. This can happen if the the System Maintenance troubleshooter detects the shortcuts as broken. The System Maintenance troubleshooter performs a weekly maintenance of the operating system.


2 Answers

Pik is not loaded when you open a new command prompt. Because of that, it is unable to default to some Ruby interpreter for a new window.

To have one particular Ruby interpreter in the PATH you will need to modify your user or system PATH so it is available always.

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

However, you can setup a default Ruby so you can do pik default to use that one. See pik help use for documentation.

like image 172
Luis Lavena Avatar answered Sep 22 '22 23:09

Luis Lavena


I'm pretty sure that pik defaults to the Ruby that that is defined in your System's Path variable.

So to change the default Ruby you would need to change your System's Path Variable to your preferred choice of Ruby.

like image 21
Azolo Avatar answered Sep 22 '22 23:09

Azolo