Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup on Windows #24

Open
richardbrand opened this issue Jul 27, 2016 · 5 comments
Open

Setup on Windows #24

richardbrand opened this issue Jul 27, 2016 · 5 comments

Comments

@richardbrand
Copy link

Thank you for creating this - I have a lot of uses in mind, but I am struggling to configure on a windows box. I have tried to find the solution, but have so far failed.

I have installed it successfully with pip install habitica, but I don't know where to save the auth.cfg file and I cannot find the auth.cfg.sample file.

Any guidance would be much appreciated, thank you.

@richardbrand
Copy link
Author

I have found auth.cfg.sample on GitHub - thanks.

But I am still unable to establish where to save auth.cfg on my Windows installation - any advice much appreciated.

@robertpateii
Copy link
Contributor

robertpateii commented Aug 19, 2016

hey you probably already figured this out, but auth.cfg needs to go in the same place for windows as for anywhere else: ~/.config/habitica. You'll probably need to use your terminal to create the .config folder if you don't have it because windows' GUI doesn't allow folders to start with periods. Also ~ means your user directory. so something like C:\Users\foo.config\habitica

does that help?

@philadams-zz
Copy link
Owner

Thanks @robertpateii - @richardbrand was this helpful? I don't have a Windows box to test on, if you have more instructions that might help other Windows users please let me know and I'll update the README instructions.

@johnnyasantoss
Copy link

Hello!
I'm having issues installing this too :(
I really liked the idea, Thanks!!

At my work computer I use Windows, so I'm trying to install here without any success.
I already created the file with the necessary info to authenticate at ~/.config/auth.cfg.

Every time I try to execute any command like status in powershell, cygwin or cmd
λ» habitica status
Windows ask me which program to use to open a file??
Example
PS: The file that Windows tries to open is actually the initialization script.

I'm using Microsoft Windows 10 Enterprise N 2016 LTSB

I think that might be a problem to how the command is defined.

What works on Windows (powershell):

λ» python (Get-Command habitica).Source
Usage: habitica [--version] [--help]
                    <command> [<args>...] [--difficulty=<d>]
                    [--verbose | --debug] [--checklists]

I'll try to find a fix for this issue 😃

@johnnyasantoss
Copy link

I found a workaround to the issue (kinda of)

I edited my profile script of powershell (equivalent of .bashrc)

start $PROFILE

Then added this alias to habitica command

$srcHabitica = (Get-Command habitica).Source
function habiticaCli(){
    python $srcHabitica $args
}

New-Alias habitica habiticaCli

After reopening powershell It works just how it should.

λ» habitica --version
habitica version 0.0.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants