Not sure how it works on windows. Did you try setting the HOME
env variable upon running rhc? Or whatever HOME*
variables there are on windows to specify user's home dir (HOMEPATH, HOMEDRIVE...).
I can only assume whoever downvoted this is an idiot. Just tried on linux and it is working. I can't test on windows but it's highly likely that it would work there as well. Anyway, for whoever finds it useful:
$ HOME=/home/crackit/newhome rhc setup
OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you upload your SSH keys, set your application namespace,
and check that other programs like Git are properly installed.
If you have your own OpenShift server, you can specify it now. Just hit enter to
use the server for OpenShift Online: openshift.redhat.com.
Enter the server hostname: |openshift.redhat.com|
You can add more servers later using 'rhc server'.
Login to openshift.redhat.com: xxxxx@yyyyyy.zzz
Password: *************
OpenShift can create and store a token on disk which allows to you to access the
server without using your password. The key is stored in your home directory and
should be kept secret. You can delete the key at any time by running 'rhc
logout'.
Generate a token now? (yes|no) yes
Generating an authorization token for this client ... lasts about 1 month
Saving configuration to /home/crackit/newhome/.openshift/express.conf ... done
No SSH keys were found. We will generate a pair of keys for you.
Created: /home/crackit/newhome/.ssh/id_rsa.pub
Your public SSH key must be uploaded to the OpenShift server to access code.
Upload now? (yes|no)
yes
default (type: ssh-rsa)
-----------------------
Fingerprint: ba:49:1e:2a:22:1d:e4:69:3b:ee:62:09:dc:2d:4c:f1
dpospisi (type: ssh-rsa)
------------------------
Fingerprint: 83:89:a7:c4:bd:31:31:8c:26:a4:82:a5:8e:6e:c0:65
You can enter a name for your key, or leave it blank to use the default name.
Using the same name as an existing key will overwrite the old key.
Provide a name for this key: |asdfghhjjkk| gah
Uploading key 'gah' ... done
Checking for git ... found git version 2.1.0
Checking common problems .. done
Checking for a domain ... asdfghh
Checking for applications ... found 2
jenkins http://aaaa-bbbbbb.rhcloud.com/
tmp http://tmp-bbbbbb.rhcloud.com/
You are using 2 of 3 total gears
The following gear sizes are available to you: small, medium
Your client tools are now configured.