prompt: display context if one is present

The documentation for tasksh currently says that the tasksh prompt will
display the context if there is one.  This adds the context to the
prompt.

Fixes GH issue #37
This commit is contained in:
Thomas Adam 2018-06-14 09:53:07 +01:00 committed by Thomas Adam
parent 908d2cc38c
commit 0fb687a7ed
3 changed files with 34 additions and 2 deletions

View file

@ -144,6 +144,10 @@ in the Taskwarrior .taskrc file.
If set to "1", causes each tasksh command to be preceded by a 'clear screen' and
cursor reset. Default is "0".
.TP
.B tasksh.contextprompt=1
If set to "1", will display the context (if set) in the prompt. Default is "0".
.SH "CREDITS & COPYRIGHTS"
Copyright (C) 2006 \- 2018 P. Beckingham, F. Hernandez.