From 6f60f74739dc44d8b4dbf2f877520ac6a060b0cd Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Wed, 29 Sep 2021 00:15:50 -0400 Subject: [PATCH] CmdNews: Add news item for environment variable support in taskrc --- src/commands/CmdNews.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/commands/CmdNews.cpp b/src/commands/CmdNews.cpp index 9201ea77d..9322f1442 100644 --- a/src/commands/CmdNews.cpp +++ b/src/commands/CmdNews.cpp @@ -318,6 +318,23 @@ void CmdNews::version2_6_0 (std::vector& items) { ); items.push_back(waiting_status); + ///////////////////////////////////////////////////////////////////////////// + // - Support for environment variables in the taskrc + + NewsItem env_vars ( + false, + "Environment variables in the taskrc", + "", + "", + " Taskwarrior now supports expanding environment variables in the taskrc file,\n" + " allowing users to customize the behaviour of 'task' based on the current env.\n", + " The environment variables can either be used in paths, or as separate values:\n" + " data.location=$XDG_DATA_HOME/task/\n" + " default.project=$PROJECT", + "", + "" + ); + items.push_back(env_vars); } ////////////////////////////////////////////////////////////////////////////////