mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Add TASK_RCDIR configuration variable.
This commit is contained in:
parent
664eef7b42
commit
9e6b755cec
6 changed files with 12 additions and 9 deletions
|
@ -37,6 +37,7 @@ SET (TASK_MAN1DIR share/man/man1 CACHE STRING "Installation directory for man pa
|
||||||
SET (TASK_MAN5DIR share/man/man5 CACHE STRING "Installation directory for man pages, section 5")
|
SET (TASK_MAN5DIR share/man/man5 CACHE STRING "Installation directory for man pages, section 5")
|
||||||
endif (FREEBSD)
|
endif (FREEBSD)
|
||||||
SET (TASK_DOCDIR share/doc/task CACHE STRING "Installation directory for doc files")
|
SET (TASK_DOCDIR share/doc/task CACHE STRING "Installation directory for doc files")
|
||||||
|
SET (TASK_RCDIR "${TASK_DOCDIR}/rc" CACHE STRING "Installation directory for configuration files")
|
||||||
SET (TASK_BINDIR bin CACHE STRING "Installation directory for the binary")
|
SET (TASK_BINDIR bin CACHE STRING "Installation directory for the binary")
|
||||||
|
|
||||||
message ("-- Looking for SHA1 references")
|
message ("-- Looking for SHA1 references")
|
||||||
|
|
2
INSTALL
2
INSTALL
|
@ -67,6 +67,7 @@ lists them and their defaults plus the CMAKE_INSTALL_PREFIX:
|
||||||
CMAKE_INSTALL_PREFIX /usr/local
|
CMAKE_INSTALL_PREFIX /usr/local
|
||||||
TASK_BINDIR bin
|
TASK_BINDIR bin
|
||||||
TASK_DOCDIR share/doc/task
|
TASK_DOCDIR share/doc/task
|
||||||
|
TASK_RCDIR share/doc/task/rc
|
||||||
TASK_MAN1DIR share/man/man1
|
TASK_MAN1DIR share/man/man1
|
||||||
TASK_MAN5DIR share/man/man5
|
TASK_MAN5DIR share/man/man5
|
||||||
|
|
||||||
|
@ -75,6 +76,7 @@ get absolute installation directories:
|
||||||
|
|
||||||
CMAKE_INSTALL_PREFIX/TASK_BINDIR /usr/local/bin
|
CMAKE_INSTALL_PREFIX/TASK_BINDIR /usr/local/bin
|
||||||
CMAKE_INSTALL_PREFIX/TASK_DOCDIR /usr/local/share/doc/task
|
CMAKE_INSTALL_PREFIX/TASK_DOCDIR /usr/local/share/doc/task
|
||||||
|
CMAKE_INSTALL_PREFIX/TASK_RCDIR /usr/local/share/doc/task/rc
|
||||||
CMAKE_INSTALL_PREFIX/TASK_MAN1DIR /usr/local/share/man/man1
|
CMAKE_INSTALL_PREFIX/TASK_MAN1DIR /usr/local/share/man/man1
|
||||||
CMAKE_INSTALL_PREFIX/TASK_MAN5DIR /usr/local/share/man/man5
|
CMAKE_INSTALL_PREFIX/TASK_MAN5DIR /usr/local/share/man/man5
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#define PACKAGE_STRING "${PACKAGE_STRING}"
|
#define PACKAGE_STRING "${PACKAGE_STRING}"
|
||||||
|
|
||||||
/* Installation details */
|
/* Installation details */
|
||||||
#define TASK_RCDIR "${CMAKE_INSTALL_PREFIX}/${TASK_DOCDIR}/rc"
|
#define TASK_RCDIR "${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}"
|
||||||
|
|
||||||
/* Localization */
|
/* Localization */
|
||||||
#define PACKAGE_LANGUAGE ${PACKAGE_LANGUAGE}
|
#define PACKAGE_LANGUAGE ${PACKAGE_LANGUAGE}
|
||||||
|
|
|
@ -265,7 +265,7 @@ your .taskrc file (note that your installation may use a slightly different path
|
||||||
from the example):
|
from the example):
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
include /usr/local/share/doc/task/rc/dark-256.theme
|
include ${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}/dark-256.theme
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
You can use any of the standard taskwarrior themes:
|
You can use any of the standard taskwarrior themes:
|
||||||
|
|
|
@ -1286,19 +1286,19 @@ theme into the configuration file, you can see some striking effects. For a
|
||||||
blue theme, add this line to your .taskrc file:
|
blue theme, add this line to your .taskrc file:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
include /usr/local/share/doc/task/rc/dark-blue-256.theme
|
include ${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}/dark-blue-256.theme
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
For a red theme:
|
For a red theme:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
include /usr/local/share/doc/task/rc/dark-red-256.theme
|
include ${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}/dark-red-256.theme
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
For a general dark theme:
|
For a general dark theme:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
include /usr/local/share/doc/task/rc/dark-256.theme
|
include ${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}/dark-256.theme
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
Here are two color rules that specify a dark blue background for all tasks that
|
Here are two color rules that specify a dark blue background for all tasks that
|
||||||
|
@ -1497,7 +1497,7 @@ used most. You can create your own, or use one of the samples to show holidays
|
||||||
on the calendar. Try adding this line to your ~/.taskrc file:
|
on the calendar. Try adding this line to your ~/.taskrc file:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
include /usr/local/share/doc/task/rc/holidays.en-US.rc
|
include ${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}/holidays.en-US.rc
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
Then:
|
Then:
|
||||||
|
|
|
@ -131,9 +131,9 @@ ones containing just the relevant configuration data like colors, etc.
|
||||||
There are two excellent uses of includes in your .taskrc, shown here:
|
There are two excellent uses of includes in your .taskrc, shown here:
|
||||||
|
|
||||||
.RS
|
.RS
|
||||||
include /usr/local/share/doc/task/rc/holidays.en-US.rc
|
include ${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}/holidays.en-US.rc
|
||||||
.br
|
.br
|
||||||
include /usr/local/share/doc/task/rc/dark-16.theme
|
include ${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}/dark-16.theme
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
This includes two standard files that are distributed with taskwarrior, which
|
This includes two standard files that are distributed with taskwarrior, which
|
||||||
|
@ -724,7 +724,7 @@ be included like this:
|
||||||
.RS
|
.RS
|
||||||
.RS
|
.RS
|
||||||
.br
|
.br
|
||||||
include /usr/local/share/doc/task/rc/holidays.en-US.rc
|
include ${CMAKE_INSTALL_PREFIX}/${TASK_RCDIR}/holidays.en-US.rc
|
||||||
.RE
|
.RE
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue