mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
add taskwarrior prompt segment; see #511
This commit is contained in:
@@ -90,6 +90,7 @@
|
||||
# swap # used swap
|
||||
todo # todo items (https://github.com/todotxt/todo.txt-cli)
|
||||
timewarrior # timewarrior tracking status (https://timewarrior.net/)
|
||||
taskwarrior # taskwarrior task count (https://taskwarrior.org/)
|
||||
# time # current time
|
||||
# =========================[ Line #2 ]=========================
|
||||
newline
|
||||
@@ -799,6 +800,26 @@
|
||||
# Custom icon.
|
||||
# typeset -g POWERLEVEL9K_TIMEWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
##############[ taskwarrior: taskwarrior task count (https://taskwarrior.org/) ]##############
|
||||
# Taskwarrior color.
|
||||
typeset -g POWERLEVEL9K_TASKWARRIOR_FOREGROUND=74
|
||||
|
||||
# Taskwarrior segment format. The following parameters are available within the expansion.
|
||||
#
|
||||
# - P9K_TASKWARRIOR_PENDING_COUNT The number of pending tasks: `task +PENDING count`.
|
||||
# - P9K_TASKWARRIOR_OVERDUE_COUNT The number of overdue tasks: `task +OVERDUE count`.
|
||||
#
|
||||
# Zero values are represented as empty parameters.
|
||||
#
|
||||
# The default format:
|
||||
#
|
||||
# '${P9K_TASKWARRIOR_OVERDUE_COUNT:+"!$P9K_TASKWARRIOR_OVERDUE_COUNT/"}$P9K_TASKWARRIOR_PENDING_COUNT'
|
||||
#
|
||||
# typeset -g POWERLEVEL9K_TASKWARRIOR_CONTENT_EXPANSION='$P9K_TASKWARRIOR_PENDING_COUNT'
|
||||
|
||||
# Custom icon.
|
||||
# typeset -g POWERLEVEL9K_TASKWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'
|
||||
|
||||
##################################[ context: user@hostname ]##################################
|
||||
# Context color when running with privileges.
|
||||
typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=178
|
||||
|
||||
Reference in New Issue
Block a user