Giter VIP home page Giter VIP logo

Comments (10)

taskwarrior avatar taskwarrior commented on August 23, 2024

Migrated metadata:

Created: 2016-09-07T04:46:42Z
Modified: 2016-10-02T04:37:42Z

from timewarrior.

taskwarrior avatar taskwarrior commented on August 23, 2024

Paul Beckingham on 2016-09-07T11:45:35Z says:

You suggest this:

$ timew rc:/path/here ...

It already supports:

$ TASKWARRIORDB=/path/here timew ...

Do we need two ways to do this?

from timewarrior.

taskwarrior avatar taskwarrior commented on August 23, 2024

David Patrick on 2016-10-02T03:20:05Z says:

Short answer: yes

I would like to be able to run multiple concurrent $TIMEWARRIORDBs, using syntax similar to taskwarrior.
Imagine, as example use-cases, tracking work-time and mood (how you're feeling at different times the day) in parallel instances,
with aliases like this;

alias work='timew rc:~/.timewarrior/work/timewarrior.cfg $*'
alias mood='timew rc:~/.timewarrior/mood/timewarrior.cfg $*'

where ../work/ and ../mood/ directories, each contain alternate timewarrior.cfg, data, extensions and log files,

I've tried six ways from Sunday to pull that off with the currently supported environment varables, but it ain't working, so unless you can suggest an viable alternative, then yes, we need another way to do this.

from timewarrior.

taskwarrior avatar taskwarrior commented on August 23, 2024

David Patrick on 2016-10-02T03:22:51Z says:

and I guess that also means a way to set TIMEWARRIORDB as a timewarrior.cfg variable.

from timewarrior.

taskwarrior avatar taskwarrior commented on August 23, 2024

David Patrick on 2016-10-02T04:18:04Z says:

And perhaps I'm comparing apples to oranges here. In taskwarrior, the rc:~/path/taskrc refers to a single configuration file, where $TIMEWARRIORDB is (I'm guessing here) a reference to a DB, or set of files. I'm ok wit dat, So My aliases could point to folders, not config files, as in;

alias work='timew rc:~/.timewarrior/work/ $*'
alias mood='timew rc:~/.timewarrior/mood/ $*'

from timewarrior.

taskwarrior avatar taskwarrior commented on August 23, 2024

Paul Beckingham on 2016-10-02T04:20:32Z says:

Timewarrior does not share syntax with Taskwarrior. But there is nothing stopping you from using environment variables in an alias:

$ alias timbuktu='TZ=Africa/Timbuktu date'
$ alias santiago='TZ=America/Santiago date'
$ alias tokyo='TZ='Asia/Tokyo date'
$ timbuktu
Sun Oct  2 04:20:41 GMT 2016
$ santiago
Sun Oct  2 01:20:46 CLST 2016
$ tokyo
Sun Oct  2 13:20:47 JST 2016

from timewarrior.

taskwarrior avatar taskwarrior commented on August 23, 2024

David Patrick on 2016-10-02T04:29:28Z says:

That's encouraging.. . getting warmer.. now with alias;

alias mood='TIMEWARRIORDB=~/.timewarrior/mood/timewarrior.cfg timew $*'

I get

Database is not readable at '/home/djp/.timewarrior/mood/timewarrior.cfg'

although the IS a mood dir and a copy of the cfg file.

from timewarrior.

taskwarrior avatar taskwarrior commented on August 23, 2024

David Patrick on 2016-10-02T04:32:51Z says:

GOT IT!

alias mood='TIMEWARRIORDB=~/.timewarrior/mood/ timew $*'

does the deed!

thanks!

from timewarrior.

taskwarrior avatar taskwarrior commented on August 23, 2024

Paul Beckingham on 2016-10-02T04:33:56Z says:

Don't point TIMEWARRIORDB at a file, point it at the directory $HOME/.timewarrior.

from timewarrior.

taskwarrior avatar taskwarrior commented on August 23, 2024

David Patrick on 2016-10-02T04:34:32Z says:

not broken, but could be included as an example in docs

from timewarrior.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.