Enhancement

- Minimized the default .taskrc file that is generated.  It now relies
  heavily on default values, but supplies data.location, and includes
  the default theme.
- Updated taskrc.5 man page to include new depends column.
This commit is contained in:
Paul Beckingham 2010-07-12 02:06:46 -04:00
parent 93e862b367
commit 7a23b67020
3 changed files with 14 additions and 3 deletions

View file

@ -55,6 +55,8 @@ std::string Config::defaults =
"# variable= -- By specifying no value, this means no default\n"
"# #variable=foo -- By commenting out the line, this uses the default\n"
"\n"
"# Use the command 'task show' to see all defaults and overrides\n"
"\n"
"# Files\n"
"data.location=~/.task\n"
"locking=on # Use file-level locking\n"
@ -472,7 +474,13 @@ void Config::createDefaultRC (const std::string& rc, const std::string& data)
<< "]\n"
<< defaults.substr (0, loc + 14)
<< data
<< defaults.substr (loc + 21);
<< "\n\n# Color theme\n"
#ifdef LINUX
<< "include /usr/local/share/doc/task/rc/dark-256.theme"
#else
<< "include /usr/local/share/doc/task/rc/dark-16.theme"
#endif
<< "\n\n";
// Write out the new file.
if (! File::write (rc, contents.str ()))