Configuring Task
Task recognizes several entries in the .taskrc file for configuration purposes. Valid entries are of the form:
name=value
Valid examples are:
This is a string of characters that define how task formats dates. The default value is:
m/d/Y
which means dates look like:
6/7/2008
The string should contain the characters:
Character | Meaning | Example |
---|---|---|
m | minimal-digit month | 1, 12 |
d | minimal-digit day | 1, 30 |
y | two-digit year | 08 |
M | two-digit month | 01, 12 |
D | two-digit day | 01, 30 |
Y | four-digit year | 2008 |
The string may also contain other characters to act as spacers, or formatting. Other values could include (but are not limited to):
dateformat | How it looks |
---|---|
d/m/Y | 7/6/2008 |
YMD | 20080607 |
m-d-y | 6-7-08 |
task edit <ID>
command is used. Task will first look for this configuration
variable. If found, it is used. Otherwise task will look
for the VISUAL or EDITOR environment variables, before it
defaults to using 'vi'.
color.due
color.pri.H
color.pri.M
color.pri.L
color.pri.none
color.active
color.tagged
color.recurring
bold_red on_bright_yellow
Provides a default command that is run every time task is invoked with no arguments. For example, if set to:
default.command=list project:foo
Then task will run the "list project:foo" command if no command is specified. This means that by merely typing:
% task
[task list project:foo]
ID Project Pri Description
1 foo H Design the thing
2 foo Build the thing
Note that the value of this variable is simply the command line that you would ordinarily type, but without the preceding "task" program name.
If specified, designates a file path that will be autoamtically written to by task, whenever the task database changes. In other words, it is automatically kept up to date.
The shadow.command configuration variable is used to determine which report is written to the shadow file. There is no color used in the shadow file.
This feature can be useful in maintaining a current file for use by the "Samurize" program.
This is the command that is run to maintain the shadow file, determined by the shadow.file configuration variable. The format is identical to that of default.command - please see the documentation for default.command.
If this command is not specified, task will use the default.command value instead. If that is not specified, the command "list" is used.
Determines whether task uses file locking when accessing the pending.data and completed.data files. Default to "on". Solaris users who store the task data files on an NFS mount may need to set locking to "off".
Note that setting this value to "off" is dangerous. It means that another program may write to the task.pending file when task is attempting to do the same.
Note that the command:
task version
will display the configuration variables found in the .taskrc file, and will warn you of any variables that are not recognized.
Copyright 2006-2009, P. Beckingham. All rights reserved.