habitica icon indicating copy to clipboard operation
habitica copied to clipboard

Setup on Windows

Open richardbrand opened this issue 8 years ago • 5 comments

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 avatar Jul 27 '16 09:07 richardbrand

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.

richardbrand avatar Jul 28 '16 09:07 richardbrand

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?

robertpateii avatar Aug 19 '16 04:08 robertpateii

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.

philadams-zz avatar Sep 16 '16 02:09 philadams-zz

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 avatar Sep 07 '17 21:09 johnnyasantoss

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

johnnyasantoss avatar Sep 07 '17 22:09 johnnyasantoss